Hey ! I know this will be a very basic question but as I am new to matlab, I want to ask that how can I convert my single matrix of 4 x 163840 to the format of 10 equal frames of 256 x4 x64. This is the format of data matrix.
The first picture is the m,atrix I need to convert and the second picture is the example format I need to achieve. Can anybody help?
Thanks in advance !

 채택된 답변

Stephen23
Stephen23 2020년 8월 25일

1 개 추천

You do not give enough information about the order you want the elements to be in, but this should get you started:
>> B = reshape(A,[4,256,64,10]);
>> B = permute(B,[2,1,3,4]);

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by