Cody

Solution 2187387

Submitted on 1 Apr 2020
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
a = 1; b=2; y_correct = [1 1.25 1.5 1.75 2]; assert(isequal(split_to_five(a,b),y_correct))

Undefined function 'lispace' for input arguments of type 'double'. Error in split_to_five (line 2) y = lispace(a,b,5); Error in Test1 (line 3) assert(isequal(split_to_five(a,b),y_correct))

2   Fail
a = 20; b=30; y_correct = [20 22.5 25 27.5 30]; assert(isequal(split_to_five(a,b),y_correct))

Undefined function 'lispace' for input arguments of type 'double'. Error in split_to_five (line 2) y = lispace(a,b,5); Error in Test2 (line 3) assert(isequal(split_to_five(a,b),y_correct))

3   Fail
a = 30; b=-20; y_correct = [30 17.5 5 -7.5 -20]; assert(isequal(split_to_five(a,b),y_correct))

Undefined function 'lispace' for input arguments of type 'double'. Error in split_to_five (line 2) y = lispace(a,b,5); Error in Test3 (line 3) assert(isequal(split_to_five(a,b),y_correct))