Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
A=magic(5);
y_correct = [
4 11 -12 -5 2;
10 -8 -6 1 3;
-9 -7 0 7 9;
-3 -1 6 8 -10;
-2 5 12 -11 -4]
assert(isequal(your_fcn_name(A),y_correct))
y_correct =
4 11 -12 -5 2
10 -8 -6 1 3
-9 -7 0 7 9
-3 -1 6 8 -10
-2 5 12 -11 -4
|
2 | Pass |
A=magic(3);
y_correct = [
3 -4 1;
-2 0 2;
-1 4 -3]
assert(isequal(your_fcn_name(A),y_correct))
y_correct =
3 -4 1
-2 0 2
-1 4 -3
|
Find the peak 3n+1 sequence value
1108 Solvers
Get the area codes from a list of phone numbers
532 Solvers
Matrix indexing with two vectors of indices
485 Solvers
376 Solvers
07 - Common functions and indexing 1
338 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!