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

조회 수: 6 (최근 30일)
How to make a "page transpose" in a 3D matrix without using the function pagetranspose (due to older version of matlab)?

채택된 답변

James Tursa
James Tursa 2022년 2월 10일
Mtranspose = permute(M,[2 1 3]);

추가 답변 (1개)

David Hill
David Hill 2022년 2월 10일
for k=1:size(yourMatrix,3)
newMatrix(:,:,k)=yourMatrix(:,:,k)';
end

카테고리

Help CenterFile Exchange에서 Linear Algebra에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by