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))
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
|
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))
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
|
3 | Pass |
x = ones(2,2);
y = [];
assert(isequal(external_frame(x),y))
y =
[]
|
4 | Pass |
x = zeros(2,2);
y = [];
assert(isequal(external_frame(x),y))
y =
[]
|
5 | Pass |
x = eye(3);
y = 1;
assert(isequal(external_frame(x),y))
y =
1
|
6 | Pass |
x = ones(6,8);
y = ones(4,6);
assert(isequal(external_frame(x),y))
y =
1 1 1 1 1 1
1 1 1 1 1 1
1 1 1 1 1 1
1 1 1 1 1 1
|
7 | Pass |
x = 1;
y = [];
assert(isequal(external_frame(x),y))
y =
[]
|
Back to basics 3 - Temp Directory
328 Solvers
188 Solvers
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
298 Solvers
498 Solvers
465 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!