Hi! I need to rearrange a matrix A into a vector B as follow: A = [1,2;3,4;5,6] B = [1 2 3 4 5 6] What's the simplest way to do this? Thanks a lot, Knut

 Akzeptierte Antwort

Thorsten
Thorsten am 8 Okt. 2015

0 Stimmen

B = reshape(A', 1, []);

Weitere Antworten (0)

Kategorien

Community Treasure Hunt

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

Start Hunting!

Translated by