Permute problem - unexpected Matlab operator
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I have a 3d dimensional array 'totmelt' that is 112 x 1381 x 601.
I want to transpose it so that it's 1381 x 601 x 112.
My understanding of permute is that this should work:
EDU>> permute (totmelt, 2 3 1);
or this:
EDU>> > melt = permute(totmelt, [2 3 1]);
maybe this:
EDU>> > melt = size(permute(totmelt, [2 3 1]));
but all return this error:
Error: Unexpected MATLAB operator.
Does anyone know what the problem is? Thanks
0 Kommentare
Akzeptierte Antwort
Kye Taylor
am 17 Apr. 2013
Bearbeitet: Kye Taylor
am 17 Apr. 2013
The first command is invalid.
The second command will work - and is what you want - once you remove the extra > at the beginning.
The third command is not what you want, but an error is returned due to the extra >
0 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!