Borrar filtros
Borrar filtros

how to make a 3x3 matrix a 9x1 matrix?

8 visualizaciones (últimos 30 días)
vedesh Mohit
vedesh Mohit el 3 de Abr. de 2018
Editada: Birdman el 3 de Abr. de 2018
Hey i have a matrix x=[ 1 4 7; 2 5 8 ;3 6 9]; how do I make this matrix become x=[ 1;2;3;4;5;6;7;8;9];

Respuesta aceptada

Birdman
Birdman el 3 de Abr. de 2018
Editada: Birdman el 3 de Abr. de 2018
reshape(x,9,1)
or
x(:) % this creates a column vector out of a matrix

Más respuestas (0)

Categorías

Más información sobre Statistics and Machine Learning Toolbox 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