MATLAB: I need put color a imagen with matrices

colormatrices

Hello. I have to paint a picture with Matrizes , I do figure with straight . Please , I need help .

Best Answer

Example:
pic = zeros(64, 128, 3, 'uint8'); %create matrix to paint in
pic(1:48,:,1) = 56; %assign color information to the various bit planes
pic(24:end,:,2) = 88;
pic(:,65:end, 3) = 199;
image(pic); %look at the image and see how the bit planes combined