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

69.44% Correct | 30.56% Incorrect
Last solution submitted on Feb 26, 2019

Problem Comments