Creating Vector from the following matrix

1 visualización (últimos 30 días)
Onovo
Onovo el 18 de Jun. de 2021
Comentada: Onovo el 18 de Jun. de 2021
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 Get Started with MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by