Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
How to plot RGB colors

Subject: How to plot RGB colors

From: Ragonz RR

Date: 5 Dec, 2008 01:18:02

Message: 1 of 3

HI, i want to know how to plot pixel based on RGB parameters which range from 0-255
for example, plotting red pixel. i know i can easily add 'r..' on my plotting statement, but for this case i will plot color based on RGB parameters. how is it then?

thx in advance

Subject: How to plot RGB colors

From: ImageAnalyst

Date: 5 Dec, 2008 02:38:56

Message: 2 of 3

On Dec 4, 8:18=A0pm, "Ragonz RR" <kyo_v...@yahoo.com> wrote:
> HI, i want to know how to plot pixel based on RGB parameters which range =
from 0-255
> for example, plotting red pixel. i know i can easily add 'r..' on my plot=
ting statement, but for this case i will plot color based on RGB parameters=
. how is it then?
>
> thx in advance

---------------------------------------------------
Use the image, imagesc, or imshow command to display colored pixels.

Subject: How to plot RGB colors

From: Oliver Woodford

Date: 5 Dec, 2008 08:27:04

Message: 3 of 3

"Ragonz RR" <kyo_varo@yahoo.com> wrote in message <gh9vga$8mv$1@fred.mathworks.com>...
> HI, i want to know how to plot pixel based on RGB parameters which range from 0-255
> for example, plotting red pixel. i know i can easily add 'r..' on my plotting statement, but for this case i will plot color based on RGB parameters. how is it then?
>
> thx in advance

Perhaps you mean something like what this does does:
http://www.mathworks.com/matlabcentral/fileexchange/14014

If you have RGB colours you can turn them into indexed colours using rgb2ind.

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us