Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = magic(4);
y_correct = sum(diag(x));
assert(isequal(your_fcn_name(x),y_correct))
ans =
34
|
2 | Pass |
%%
x = ones(5);
y_correct = sum(diag(x));
assert(isequal(your_fcn_name(x),y_correct))
ans =
5
|
Determine whether a vector is monotonically increasing
11917 Solvers
Sort a list of complex numbers based on far they are from the origin.
4327 Solvers
Create a cell array out of a struct
508 Solvers
400 Solvers
358 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!