Permute problem - unexpected Matlab operator

1 visualización (últimos 30 días)
Grant
Grant el 17 de Abr. de 2013
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

Respuesta aceptada

Kye Taylor
Kye Taylor el 17 de Abr. de 2013
Editada: Kye Taylor el 17 de Abr. de 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 >

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by