How to convert a matrix to a vector

2 visualizaciones (últimos 30 días)
Boni_Pl
Boni_Pl el 18 de Oct. de 2019
Respondida: Stephan el 18 de Oct. de 2019
Hello , I have a square matrix let M=[1,2,4;6,5,7;8,3,9]. Now I have to convert it into a column vector as. c=[1;2;4;6;5;7;8;3;9]. How to do this? Please help.

Respuesta aceptada

Stephan
Stephan el 18 de Oct. de 2019
M1=reshape(M.',[],1)

Más respuestas (0)

Categorías

Más información sobre Convert Image Type en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by