Cody

Solution 1714977

Submitted on 24 Jan 2019 by Valentin Noël-Youïnou
  • Size: 9
  • This is the leading solution.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
A(:,:,1)=[1 3] A(:,:,2)=[2 2] A(:,:,3)=[4 3] y_correct = permute(A,[2 1 3]); assert(isequal(mypermute(A),y_correct))

A = 1 3 A(:,:,1) = 1 3 A(:,:,2) = 2 2 A(:,:,1) = 1 3 A(:,:,2) = 2 2 A(:,:,3) = 4 3 [Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In mypermute (line 2) In ScoringEngineTestPoint1 (line 5) In solutionTest (line 3)]

2   Pass
A(:,:,1)=[2;3] A(:,:,2)=[3;2] A(:,:,3)=[4;3] y_correct = permute(A,[2 1 3]); assert(isequal(mypermute(A),y_correct))

A = 2 3 A(:,:,1) = 2 3 A(:,:,2) = 3 2 A(:,:,1) = 2 3 A(:,:,2) = 3 2 A(:,:,3) = 4 3 [Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In mypermute (line 2) In ScoringEngineTestPoint2 (line 5) In solutionTest (line 5)]

Suggested Problems