Cody

Solution 1711358

Submitted on 21 Jan 2019 by Valentin Noël-Youïnou
  • Size: 7
  • 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
x = eye(9); y = [1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1]; assert(isequal(external_frame(x),y))

[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 external_frame (line 2) In ScoringEngineTestPoint1 (line 9) In solutionTest (line 3)]

2   Pass
x = magic(7); y = [47 7 9 18 27 6 8 17 26 35 14 16 25 34 36 15 24 33 42 44 23 32 41 43 3]; assert(isequal(external_frame(x),y))

[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 external_frame (line 2) In ScoringEngineTestPoint2 (line 7) In solutionTest (line 5)]

3   Pass
x = ones(2,2); y = []; assert(isequal(external_frame(x),y))

[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 external_frame (line 2) In ScoringEngineTestPoint3 (line 3) In solutionTest (line 7)]

4   Pass
x = zeros(2,2); y = []; assert(isequal(external_frame(x),y))

[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 external_frame (line 2) In ScoringEngineTestPoint4 (line 3) In solutionTest (line 9)]

5   Pass
x = eye(3); y = 1; assert(isequal(external_frame(x),y))

[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 external_frame (line 2) In ScoringEngineTestPoint5 (line 3) In solutionTest (line 11)]

6   Pass
x = ones(6,8); y = ones(4,6); assert(isequal(external_frame(x),y))

[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 external_frame (line 2) In ScoringEngineTestPoint6 (line 3) In solutionTest (line 13)]

7   Pass
x = 1; y = []; assert(isequal(external_frame(x),y))

[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 external_frame (line 2) In ScoringEngineTestPoint7 (line 3) In solutionTest (line 15)]

More from this Author11