Cody

Solution 2131634

Submitted on 17 Feb 2020 by Tim
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   Pass
assert(isequal(bin_conv(17),dec2bin(17)))

2   Pass
assert(isequal(bin_conv(2),dec2bin(2)))

3   Pass
assert(isequal(bin_conv(107),dec2bin(107)))

4   Pass
assert(isequal(bin_conv(223),dec2bin(223)))

5   Pass
assert(isequal(bin_conv(2437),dec2bin(2437)))

6   Pass
assert(isequal(bin_conv(55),dec2bin(55)))

7   Pass
assert(isequal(bin_conv(55.55),dec2bin(55.55)))

8   Pass
filetext = fileread('bin_conv.m'); assert(isempty(strfind(filetext, 'dec2bin')),'dec2bin() forbidden') assert(isempty(strfind(filetext, 'de2bi')),'de2bi() forbidden')

Suggested Problems

More from this Author145