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

8 次查看(过去 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