Cody

Solution 1457620

Submitted on 7 Mar 2018
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 = 7; y_correct = [7,4]; assert(isequal(n2im(x),y_correct))

Undefined function or variable 'y'. Error in n2im (line 2) [x 0.5*y+0.5]; Error in Test1 (line 3) assert(isequal(n2im(x),y_correct))

2   Fail
x = 11; y_correct = [11,6]; assert(isequal(n2im(x),y_correct))

Undefined function or variable 'y'. Error in n2im (line 2) [x 0.5*y+0.5]; Error in Test2 (line 3) assert(isequal(n2im(x),y_correct))