Filter löschen
Filter löschen

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

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

Akzeptierte Antwort

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

Weitere Antworten (1)

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

Kategorien

Mehr zu Linear Algebra finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by