Cody

# Problem 42347. Create a Standard Size Vector

Solution 1892661

Submitted on 6 Aug 2019
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Fail
x = 220; y_correct = [1.0000 55.7500 110.5000 165.2500 220.0000]; assert(isequal(standard_vector(x),y_correct))

Not enough input arguments. Error in linspace (line 19) n = floor(double(n)); Error in standard_vector (line 2) y = linspace(1:x:5) Error in Test1 (line 3) assert(isequal(standard_vector(x),y_correct))

2   Fail
x = 801; y_correct = [ 1 201 401 601 801]; assert(isequal(standard_vector(x),y_correct))

Not enough input arguments. Error in linspace (line 19) n = floor(double(n)); Error in standard_vector (line 2) y = linspace(1:x:5) Error in Test2 (line 3) assert(isequal(standard_vector(x),y_correct))

3   Fail
x = 4; y_correct = [ 1.0000 1.7500 2.5000 3.2500 4.000]; assert(isequal(standard_vector(x),y_correct))

Not enough input arguments. Error in linspace (line 19) n = floor(double(n)); Error in standard_vector (line 2) y = linspace(1:x:5) Error in Test3 (line 3) assert(isequal(standard_vector(x),y_correct))