Quantcast
Channel: MATLAB Central Newsreader Recent Posts
Viewing all articles
Browse latest Browse all 19628

Re: Convert a set of 1D outputs into a single 2D matrix

$
0
0
dpb <none@non.net> wrote in message <klkfkl$bs7$1@speranza.aioe.org>...
> On 4/28/2013 6:08 PM, Eric wrote:
> > Hello.
> >
> > I require assistance in making a string of 1D outputs in the form of x =
> > [2 2 -4], x = [1 5 -6] ect. and add them to a matrix that appears as such:
> ...
>
>
> doc vertcat
>
> --


That is brilliant. This will be useful. For my particular issue though, I have an array, A, that updates with each loop, and I want to catch the data from each loop into a matrix of row length n, where n is the number of loops. It may be bad from a memory standpoint but since this isnt doing large calculations it will be fine for this particular application. I am just unsure of how to do it.

Viewing all articles
Browse latest Browse all 19628

Latest Images

Trending Articles



Latest Images