How to permute given 3d matrix? - MATLAB Cody - MATLAB Central

Problem 43185. How to permute given 3d matrix?

Difficulty:Rate
A(:,:,1)=[1 3]
A(:,:,2)=[2 2]
A(:,:,3)=[4 3]
Change rows to columns and columns to rows, similar to transpose. Result should be
A(:,:,1)=[1;3]
A(:,:,2)=[2;2]
A(:,:,3)=[4;3]
(hint: use permute)

Solution Stats

60.47% Correct | 39.53% Incorrect
Last Solution submitted on Apr 24, 2025

Problem Comments

Solution Comments

Show comments
Registration Now Open for MathWorks AUTOMOTIVE CONFERENCE 2025
...
Hello Community, We're excited to announce that registration is now open for the...

Problem Recent Solvers49

Suggested Problems

More from this Author27

Community Treasure Hunt

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

Start Hunting!
Go to top of page