Do a matrix,array

1 Ansicht (letzte 30 Tage)
Giannakis Stoukas
Giannakis Stoukas am 4 Mai 2015
Beantwortet: Star Strider am 4 Mai 2015
I have a matrix A=[5 4 3; 1 8 2; 6 9 7] and i want to insert it into one array B=[5 4 3 1 8 2 6 9 7].How i will do it?

Akzeptierte Antwort

Star Strider
Star Strider am 4 Mai 2015
This works:
B = reshape(A', 1, []);

Weitere Antworten (0)

Kategorien

Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by