Hi,(adsbygoogle = window.adsbygoogle || []).push({});

I have a structure AA.BB, which goes from AA.BB(1) to AA.BB(1000). I have for example a matrix "X" of size [1000x3], which I want to add to this structure, such that it becomes like this:

AA.BB(1).X(1)AA.BB(2).X(1)...AA.BB(1000).X(1)

I want the same for X(2) and X(3).

Can this be done without using a loop, in which all entries of the matrix are individually placed in the structure? I dont want to use a loop at all.

I know it may be easier to just keep the matrix "X", but I want to know if such a thing can be done.

Thanks in advance for your help!

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# MatLab: How to add a matrix to a structure without a loop?

Loading...

Similar Threads - MatLab matrix structure | Date |
---|---|

How do I extract elements of a random matrix masked by a circle with its center at A(15,26) | Sep 15, 2016 |

Matlab Append new columns into Excel | Jun 20, 2016 |

Matlab error matrix function | Apr 25, 2016 |

Want gray scale image of a matrix in matlab | Aug 14, 2015 |

Matlab and preparing matrix lines | Jan 30, 2015 |

**Physics Forums - The Fusion of Science and Community**