Cody

# Problem 540. Convert hex color specification to MATLAB RGB

Solution 2005390

Submitted on 6 Nov 2019
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))

Error in solution: Line: 1 Column: 30 Invalid text character. Check for unsupported symbol, invisible character, or pasting of non-ASCII characters.

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

Error in solution: Line: 1 Column: 30 Invalid text character. Check for unsupported symbol, invisible character, or pasting of non-ASCII characters.

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

Error in solution: Line: 1 Column: 30 Invalid text character. Check for unsupported symbol, invisible character, or pasting of non-ASCII characters.

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

Error in solution: Line: 1 Column: 30 Invalid text character. Check for unsupported symbol, invisible character, or pasting of non-ASCII characters.