Cody

Solution 494826

Submitted on 1 Sep 2014 by rifat
  • Size: 13
  • This is the leading solution.
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
%% 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))