a basic question in matlab
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Mnr
am 21 Jun. 2015
Bearbeitet: Azzi Abdelmalek
am 21 Jun. 2015
Hello all,
If I have a 1xLxN matrix and would like to reshape it in order to get a LxN matrix, how I can do that? In particular, suppose I have a 1x2x4 matrix a:
a(1,:,1)=[0 0]; a(1,:,2)=[0 1];a(1,:,3)=[1 1];a(1,:,4)=[0 1];
and I would like to get a 4x2 matrix of [0 0;0 1;1 1;0 1]? Thanks.
0 Kommentare
Akzeptierte Antwort
Azzi Abdelmalek
am 21 Jun. 2015
Bearbeitet: Azzi Abdelmalek
am 21 Jun. 2015
Edit
squeeze(a).'
1 Kommentar
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!