Azzera filtri
Azzera filtri

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

8 visualizzazioni (ultimi 30 giorni)
How to make a "page transpose" in a 3D matrix without using the function pagetranspose (due to older version of matlab)?

Risposta accettata

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

Più risposte (1)

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

Categorie

Scopri di più su Linear Algebra in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by