Cody

Solution 1941626

Submitted on 18 Sep 2019 at 15:46
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
n = 10; y_correct = (0:2:n); assert(isequal(zeroToNby2(n),y_correct))

Undefined function 'newvec' for input arguments of type 'double'. Error in zeroToNby2 (line 2) y =newvec(0:n:2); Error in Test1 (line 3) assert(isequal(zeroToNby2(n),y_correct))

2   Fail
n = 102; y_correct = (0:2:n); assert(isequal(zeroToNby2(n),y_correct))

Undefined function 'newvec' for input arguments of type 'double'. Error in zeroToNby2 (line 2) y =newvec(0:n:2); Error in Test2 (line 3) assert(isequal(zeroToNby2(n),y_correct))

3   Fail
n = 73; y_correct = (0:2:n); assert(isequal(zeroToNby2(n),y_correct))

Undefined function 'newvec' for input arguments of type 'double'. Error in zeroToNby2 (line 2) y =newvec(0:n:2); Error in Test3 (line 3) assert(isequal(zeroToNby2(n),y_correct))