Converting a matrix of other forms into one simple matrix - help

2 次查看(过去 30 天)
Hi guys, I have 4x36x4 matrix and I wanted to make it into 16x36 matrix, is there anyway to do that?
Best regards, Ayubirad

采纳的回答

Andrei Bobrov
Andrei Bobrov 2012-9-11
编辑:Andrei Bobrov 2012-9-11
please read about the function reshape
A = randi(456,4,36,4); % Let the initial array
out = reshape(A,16,[]);
ADD (please read about the function permute)
out = reshape(reshape(A,size(A,1),[])',size(A,2),[])';
or
out = reshape(permute(A,[2 1 3]),size(A,2),[])';
  3 个评论

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by