Permute problem - unexpected Matlab operator

1 次查看(过去 30 天)
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

采纳的回答

Kye Taylor
Kye Taylor 2013-4-17
编辑:Kye Taylor 2013-4-17
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 个)

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by