Creating Vector from the following matrix

1 Ansicht (letzte 30 Tage)
Onovo
Onovo am 18 Jun. 2021
Kommentiert: Onovo am 18 Jun. 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.

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by