This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
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
r =
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
ans =
[]
|
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
r =
3 -4 1
-2 0 2
-1 4 -3
ans =
[]
|
Make an awesome ramp for a tiny motorcycle stuntman
262 Solvers
Who is the smartest MATLAB programmer?
469 Solvers
151 Solvers
395 Solvers
Matlab Basics - Create a row vector
205 Solvers