How do I change the array of 200x2x100 to 100x2x200?

 Respuesta aceptada

Subhadeep Koley
Subhadeep Koley el 28 de Abr. de 2021
Editada: Subhadeep Koley el 28 de Abr. de 2021
% Generate demo data
data = rand(200, 2, 100);
% Permute the data
newData = permute(data, [3 2 1]);
size(data)
ans = 1×3
200 2 100
size(newData)
ans = 1×3
100 2 200

Más respuestas (0)

Categorías

Más información sobre Programming en Centro de ayuda y File Exchange.

Preguntada:

el 28 de Abr. de 2021

Editada:

el 28 de Abr. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by