"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <kbmrgh$dhv$1@newscl01ah.mathworks.com>...
> "CHINEDU" wrote in message <kbmn05$srb$1@newscl01ah.mathworks.com>...
>
> > e.g for if A is 3-by-2 matrix with subarrays as
> > A = [(1,2,2) (1 2 3)
> > (4 5 6) (2,2,3)
> > (0,3,2) (1,2,2)]
> >
> > ho do I initialize A?
> >
> > Thanks
>
> A=cat(3,[1 2 2; 4 5 6; 0 3 2]',[1 2 3; 2 2 3; 1 2 2]')
>
> A(:,1,2)
> A(:,3,1)
>
> % Bruno
Thanks Bruno,
I have already continued the project without using array of arrays any more. but for learning sake, it is still good to understand how that works.
Thanks
> "CHINEDU" wrote in message <kbmn05$srb$1@newscl01ah.mathworks.com>...
>
> > e.g for if A is 3-by-2 matrix with subarrays as
> > A = [(1,2,2) (1 2 3)
> > (4 5 6) (2,2,3)
> > (0,3,2) (1,2,2)]
> >
> > ho do I initialize A?
> >
> > Thanks
>
> A=cat(3,[1 2 2; 4 5 6; 0 3 2]',[1 2 3; 2 2 3; 1 2 2]')
>
> A(:,1,2)
> A(:,3,1)
>
> % Bruno
Thanks Bruno,
I have already continued the project without using array of arrays any more. but for learning sake, it is still good to understand how that works.
Thanks