I'm trying to concatenate a graysacale and rgb image but it shows error.
This is the code
>> A = imread('bird.jpg');>> B = rgb2gray(A);>> imshow(A),imshow(B);>> C = cat(2,A,B);Error using catDimensions of arrays being concatenated are not consistent.
Can someone help me out?
I want this effect which is shown in given image
Best Answer