Creating Vector from the following matrix

Please Given the following matrix A=[1 2 3; 4 5 6; 7 8 9], I would like to create a column vector B from A, such that B=[1;2;3;4;5;6;7;8;9]. I need this formular to compute large matrix data into a column vector. Thank you.

 Respuesta aceptada

SALAH ALRABEEI
SALAH ALRABEEI el 18 de Jun. de 2021
B = reshape(A',1,[]);

Más respuestas (0)

Categorías

Más información sobre Images en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 18 de Jun. de 2021

Comentada:

el 18 de Jun. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by