Cody

Solution 2188603

Submitted on 2 Apr 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
grayImage = [1 2 3; 4 5 6; 7 8 9]; rgbImage(:,:,1) = [1 2 3; 4 5 6; 7 8 9]; rgbImage(:,:,2) = [1 2 3; 4 5 6; 7 8 9]; rgbImage(:,:,3) = [1 2 3; 4 5 6; 7 8 9]; assert(isequal(gray2rgb(grayImage),rgbImage))

Output argument "rgbImage" (and maybe others) not assigned during call to "gray2rgb". Error in Test1 (line 5) assert(isequal(gray2rgb(grayImage),rgbImage))