Cody

Solution 1580269

Submitted on 10 Jul 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 = 23; y_correct = 5; assert(isequal(dec_2_bin(x),y_correct))

ans = 5

Output argument "y" (and maybe others) not assigned during call to "dec_2_bin". Error in Test1 (line 3) assert(isequal(dec_2_bin(x),y_correct))

2   Fail
x = 234; y_correct = 8; assert(isequal(dec_2_bin(x),y_correct))

ans = 8

Output argument "y" (and maybe others) not assigned during call to "dec_2_bin". Error in Test2 (line 3) assert(isequal(dec_2_bin(x),y_correct))

3   Fail
x = 22; y_correct = 5; assert(isequal(dec_2_bin(x),y_correct))

ans = 5

Output argument "y" (and maybe others) not assigned during call to "dec_2_bin". Error in Test3 (line 3) assert(isequal(dec_2_bin(x),y_correct))

4   Fail
x = 2; y_correct = 2; assert(isequal(dec_2_bin(x),y_correct))

ans = 2

Output argument "y" (and maybe others) not assigned during call to "dec_2_bin". Error in Test4 (line 3) assert(isequal(dec_2_bin(x),y_correct))