Cody

Solution 2276192

Submitted on 13 May 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
hex = '#0000FF'; rgb = [0 0 1]; assert(isequal(color_hex2rgb(hex),rgb))

Undefined function 'num' for input arguments of type 'double'. Error in color_hex2rgb (line 6) temp_num=num(i); Error in Test1 (line 3) assert(isequal(color_hex2rgb(hex),rgb))

2   Fail
hex = '#33FF00'; rgb = [0.2 1 0]; assert(isequal(color_hex2rgb(hex),rgb))

Undefined function 'num' for input arguments of type 'double'. Error in color_hex2rgb (line 6) temp_num=num(i); Error in Test2 (line 3) assert(isequal(color_hex2rgb(hex),rgb))

3   Fail
hex = '#FFCCFF'; rgb = [1 0.8 1]; assert(isequal(color_hex2rgb(hex),rgb))

Undefined function 'num' for input arguments of type 'double'. Error in color_hex2rgb (line 6) temp_num=num(i); Error in Test3 (line 3) assert(isequal(color_hex2rgb(hex),rgb))

4   Fail
hex = '#999999'; rgb = [.6 .6 .6]; assert(isequal(color_hex2rgb(hex),rgb))

Undefined function 'num' for input arguments of type 'double'. Error in color_hex2rgb (line 6) temp_num=num(i); Error in Test4 (line 3) assert(isequal(color_hex2rgb(hex),rgb))