Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
a = diag(spiral(4));
b = digSpi(4);
assert(isequal(a,b));
y =
7
1
3
13
|
2 | Pass |
a = diag(spiral(5));
b = digSpi(5);
assert(isequal(a,b));
y =
21
7
1
3
13
|
3 | Pass |
a = diag(spiral(6));
b = digSpi(6);
assert(isequal(a,b));
y =
21
7
1
3
13
31
|
4 | Pass |
a = diag(spiral(7));
b = digSpi(7);
assert(isequal(a,b));
y =
43
21
7
1
3
13
31
|
5 | Pass |
a = diag(spiral(8));
b = digSpi(8);
assert(isequal(a,b));
y =
43
21
7
1
3
13
31
57
|
607 Solvers
Calculate the Levenshtein distance between two strings
456 Solvers
348 Solvers
273 Solvers
Height of a right-angled triangle
448 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!