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:
Convert matrix size...?

Subject: Convert matrix size...?

From: Model Ramachandran

Date: 28 Aug, 2009 01:44:07

Message: 1 of 5

hi ,

could any one help me to convert size of the matrix.

I would like to convert 1*251 matrix into 251*1 matrix,Which function I have to use...?

To convert 251*1 into 1*251 I use (Temp_Funtion')

Thanks for your.

I am looking for your valuable reply.

Subject: Convert matrix size...?

From: Nasser Abbasi

Date: 28 Aug, 2009 01:54:49

Message: 2 of 5


"Model Ramachandran" <selvakumar.ram@gmail.com> wrote in message
news:h77cp7$p8a$1@fred.mathworks.com...
> hi ,
>
> could any one help me to convert size of the matrix.
>
> I would like to convert 1*251 matrix into 251*1 matrix,Which function I
> have to use...?
>
> To convert 251*1 into 1*251 I use (Temp_Funtion')
>
> Thanks for your.
>
> I am looking for your valuable reply.

Use the same thing, the transpose operator '

--Nasser

Subject: Convert matrix size...?

From: Darren Rowland

Date: 28 Aug, 2009 01:56:11

Message: 3 of 5

You can use reshape to change the size of a matrix.
However, for this specific example the transpose operator ' will do, e.g.

a = a';

Subject: Convert matrix size...?

From: Matt Fig

Date: 28 Aug, 2009 02:02:26

Message: 4 of 5

As others have mentioned, use the transpose operator. Just be sure to differentiate between:

A = A' % conjugate transpose

and

A = A.' % non-conjugate transpose

Subject: Convert matrix size...?

From: Model Ramachandran

Date: 28 Aug, 2009 03:04:02

Message: 5 of 5

Ohh

Thanks to alll



"Darren Rowland" <darrenjremovethisrowland@hotmail.com> wrote in message <h77dfr$b7l$1@fred.mathworks.com>...
> You can use reshape to change the size of a matrix.
> However, for this specific example the transpose operator ' will do, e.g.
>
> a = a';

Tags for 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