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]);

1 件のコメント

Muhammad Sannan Ali
Muhammad Sannan Ali 2020 年 8 月 25 日
Thanks a lot it worked !

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Community Treasure Hunt

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

Start Hunting!

Translated by