Got Questions? Get Answers.
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Matrix manipulation

Subject: Matrix manipulation

From: ravi

Date: 5 Apr, 2010 20:50:20

Message: 1 of 3

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
      
      
      

Subject: Matrix manipulation

From: James Tursa

Date: 5 Apr, 2010 21:04:20

Message: 2 of 3

"ravi " <ravi_071@hotmail.com> wrote in message <hpdiec$kb$1@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

Subject: Matrix manipulation

From: ravi

Date: 5 Apr, 2010 21:28:04

Message: 3 of 3

thanx james
ravi










"James Tursa" <aclassyguy_with_a_k_not_a_c@hotmail.com> wrote in message <hpdj8k$d2q$1@fred.mathworks.com>...
> "ravi " <ravi_071@hotmail.com> wrote in message <hpdiec$kb$1@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

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us