|
dpb <none@non.net> wrote in message <jfuert$s1f$1@speranza.aioe.org>...
> On 1/26/2012 4:20 AM, Widt wrote:
> > Hi.
> >
> > I have three column vectors (a, b and c) which are n items in length.
> > I need to get each item of these vectors into [3x3] matrices which I
> > have nested inside a cell M. M has n numbers of [3x3] matrices.
> ...
>
> I can't parse the request, sorry.
>
> How about a (small) example input/desired output?
>
> --
Here is an example. If I define;
a = [1 2 3 4 5]';
b = [6 7 8 9 10]';
c = [11 12 13 14 15]';
M = cell(5,1);
and then I write;
M(:,1) = {[a;b;c]}
I want the first value of each column vector to be put into the column of the first matrix in the M cell etc. like this:
{[1 6 11];[2 7 12] etc.}
What I get is the column vectors a,b and c put into a column vector 5 times.
M = [15x1 double]
[15x1 double]
[15x1 double]
[15x1 double]
[15x1 double]
Thanks in advance for any help on this.
|