|
Sorry, it should be:
new_A = [reshape(A(1,:),[],4);reshape(A(2,:),[],4)]
"Bree " <breezulmaid@gmail.com> wrote in message <idshqh$msk$1@fred.mathworks.com>...
> Try:
>
> new_A = [reshape(A(2,:),[],4);reshape(A(1,:),[],4)]
>
> hope it helps,
> -Bree
>
> "Kurt " <rerty258@gmail.com> wrote in message <idsgop$752$1@fred.mathworks.com>...
> > Hello guys,
> >
> > I have a matrix A:
> >
> > A = [ 10 20 30 40 50 60 70 80 90 100 110 120;
> > 1 2 3 4 5 6 7 8 9 11 12 13]
> >
> > I'd like to reshape it as follows:
> >
> > new_A =
> > 10 20 30 40
> > 50 60 70 80
> > 90 100 110 120
> > 1 2 3 4
> > 5 6 7 8
> > 9 11 12 13
> >
> > Can I get some help with this.
> >
> > all the best,
> > kurtis
|