Does someone know how to reshape an array for example: A=[1 5; 2 4; 5 6] to an array B=(1,6) to be like this: B=[1 5 2 4 5 6];
Thank you...

 Akzeptierte Antwort

Weitere Antworten (2)

Honglei Chen
Honglei Chen am 17 Nov. 2011

0 Stimmen

You can try
B = A.';
B = B(:).';
athpapa -
athpapa - am 17 Nov. 2011

0 Stimmen

thank you very much!

Kategorien

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

Gefragt:

am 17 Nov. 2011

Community Treasure Hunt

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

Start Hunting!

Translated by