From: ravi on
Hi,

I have the following matrix

A =
23 45
11 67
53 39

But I would like it in the form:

A = 23
45
11
67
53
39

Can anyone suggest something?

Thanks
ravi



From: James Tursa on
"ravi " <ravi_071(a)hotmail.com> wrote in message <hpdiec$kb$1(a)fred.mathworks.com>...
> Hi,
>
> I have the following matrix
>
> A =
> 23 45
> 11 67
> 53 39
>
> But I would like it in the form:
>
> A = 23
> 45
> 11
> 67
> 53
> 39
>
> Can anyone suggest something?
>
> Thanks
> ravi
>

A = reshape(A.',[],1)

James Tursa
From: ravi on
thanx james
ravi










"James Tursa" <aclassyguy_with_a_k_not_a_c(a)hotmail.com> wrote in message <hpdj8k$d2q$1(a)fred.mathworks.com>...
> "ravi " <ravi_071(a)hotmail.com> wrote in message <hpdiec$kb$1(a)fred.mathworks.com>...
> > Hi,
> >
> > I have the following matrix
> >
> > A =
> > 23 45
> > 11 67
> > 53 39
> >
> > But I would like it in the form:
> >
> > A = 23
> > 45
> > 11
> > 67
> > 53
> > 39
> >
> > Can anyone suggest something?
> >
> > Thanks
> > ravi
> >
>
> A = reshape(A.',[],1)
>
> James Tursa
 | 
Pages: 1
Prev: matlab masking help
Next: solar module simulation