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 !

 Respuesta aceptada

Stephen23
Stephen23 el 25 de Ag. de 2020

1 voto

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

Más respuestas (0)

Categorías

Community Treasure Hunt

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

Start Hunting!

Translated by