how to reshape a matrix to a vector?

I have a matrix for example [1 2 3; 4 5 6; 7 8 9]. I want to return it to [1 2 3 4 5 6 7 8 9] how can I do that please? Thanks

Weitere Antworten (1)

sama
sama am 21 Mai 2018

0 Stimmen

Thanks a lot. I used reshape but totally had forgot about transpose ('). Thank you

Kategorien

Tags

Gefragt:

am 21 Mai 2018

Beantwortet:

am 21 Mai 2018

Community Treasure Hunt

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

Start Hunting!

Translated by