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

8 vues (au cours des 30 derniers jours)
How to make a "page transpose" in a 3D matrix without using the function pagetranspose (due to older version of matlab)?

Réponse acceptée

James Tursa
James Tursa le 10 Fév 2022
Mtranspose = permute(M,[2 1 3]);

Plus de réponses (1)

David Hill
David Hill le 10 Fév 2022
for k=1:size(yourMatrix,3)
newMatrix(:,:,k)=yourMatrix(:,:,k)';
end

Catégories

En savoir plus sur Linear Algebra dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by