Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 5; n = 4;
y_correct = [-5 -2.5 0 2.5 5];
assert(isequal(spaced_intervals(x,n),y_correct))
ans =
-5.0000 -2.5000 0 2.5000 5.0000
|
2 | Pass |
x = 9; n = 5;
assert(std(diff(spaced_intervals(x,n)))<1e-10)
ans =
-9.0000 -5.4000 -1.8000 1.8000 5.4000 9.0000
|
Sort a list of complex numbers based on far they are from the origin.
4327 Solvers
Omit columns averages from a matrix
527 Solvers
284 Solvers
Find out sum of all elements of given Matrix
349 Solvers
2058 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!