MATLAB: How to visualise the colour with a given set of RGB values

rgb visualisationsingle set rgb

Hi,
I have one set of RGB values
RGB=[85 270 100];
How to represent/visualise the colour in a say, 80 by 80 pixel colour patch?

Best Answer

x = [0 1 1 0];
y = [0 0 1 1];
patch(x,y,[85 250 100]./255)