Cody

Problem 43185. How to permute given 3d matrix?

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

67.5% Correct | 32.5% Incorrect
Last Solution submitted on Feb 18, 2020

Problem Comments

Problem Recent Solvers26

Suggested Problems

More from this Author27