Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = 1;
y_correct = [1 0; 0 1]
assert(isequal(your_fcn_name(x),y_correct))
y_correct =
1 0
0 1
ans =
1 0
0 1
|
2 | Pass |
%%
x = 5;
y_correct = [25 0; 0 25]
assert(isequal(your_fcn_name(x),y_correct))
y_correct =
25 0
0 25
ans =
25 0
0 25
|
5703 Solvers
Sum all integers from 1 to 2^n
8412 Solvers
Given a matrix, return the last eigen value
175 Solvers
Append two matrix as shown below example
181 Solvers
903 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!