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 |
x = 220;
y_correct = [1.0000 55.7500 110.5000 165.2500 220.0000];
assert(isequal(standard_vector(x),y_correct))
y =
1.0000 55.7500 110.5000 165.2500 220.0000
|
2 | Pass |
x = 801;
y_correct = [ 1 201 401 601 801];
assert(isequal(standard_vector(x),y_correct))
y =
1 201 401 601 801
|
3 | Pass |
x = 4;
y_correct = [ 1.0000 1.7500 2.5000 3.2500 4.000];
assert(isequal(standard_vector(x),y_correct))
y =
1.0000 1.7500 2.5000 3.2500 4.0000
|
3238 Solvers
Convert a vector into a number
503 Solvers
Replace multiples of 5 with NaN
358 Solvers
139 Solvers
273 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!