How to make a "page transpose" in a 3D matrix without using the function pagetranspose?

8 visualizaciones (últimos 30 días)
How to make a "page transpose" in a 3D matrix without using the function pagetranspose (due to older version of matlab)?

Respuesta aceptada

James Tursa
James Tursa el 10 de Feb. de 2022
Mtranspose = permute(M,[2 1 3]);

Más respuestas (1)

David Hill
David Hill el 10 de Feb. de 2022
for k=1:size(yourMatrix,3)
newMatrix(:,:,k)=yourMatrix(:,:,k)';
end

Categorías

Más información sobre Linear Algebra en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by