convert matrix and horizontally catenate
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Damith
am 16 Jul. 2014
Kommentiert: Damith
am 16 Jul. 2014
Hi,
I need to convert this matrix A to
A=[1 2 3 4 5 6
7 8 9 10 11 12
13 14 15 16 17 18
19 20 21 22 23 24];
A = 1 2 3 4 5 6 7 8 9 10...24;
How can I perform this in matlab? Any help is appreciated.
Thanks.
0 Kommentare
Akzeptierte Antwort
Azzi Abdelmalek
am 16 Jul. 2014
Bearbeitet: Azzi Abdelmalek
am 16 Jul. 2014
A=A'
A=A(:)'
Or
reshape(A',1,[])
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Creating and Concatenating Matrices 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!