Code covered by the BSD License  

Highlights from
rgb.m

4.8

4.8 | 5 ratings Rate this file 24 Downloads (last 30 days) File Size: 3.71 KB File ID: #1805

rgb.m

by Ben Mitch

 

06 Jun 2002 (Updated 07 Jun 2002)

Convert colour names (blue,teal,pale green) into RGB triplets.

| Watch this File

File Information
Description

rgb(col) returns a Matlab RGB colour triplet [R G B] converted from 'col'.

'col' can be:
  an [R G B] triplet (unchanged)
  a colour name, e.g. 'pale orange'
  a matlab colour char (k,r,...)
  a QBASIC colour code (0-15)
  a DWORD colour code (0-0xFFFFFF)
  a DWORD BGR colour code

MATLAB release MATLAB 6.0 (R12)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (6)
17 Aug 2005 Nick Williams

Just what I needed - the Matlab color space is large but it only allows limited navigation. This tool helps find your way around the colors much easier.

01 Nov 2006 GAbriella Musacchia

This was very helpful!

19 Sep 2007 Alvaro Semedo  
17 Oct 2008 lemes maykon

in my matlab no found the sistem RGB and HSI,how install this sistem? what do i do?

22 Jun 2010 Matthew

Thanks for writing this, I find it very handy and use it often when I write scripts to plot various measurement data.

30 Mar 2012 Paul  
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
annotation Ben Mitch 22 Oct 2008 06:45:11
customization Ben Mitch 22 Oct 2008 06:45:11
rgb Ben Mitch 22 Oct 2008 06:45:11
colour Ben Mitch 22 Oct 2008 06:45:11
word Ben Mitch 22 Oct 2008 06:45:11
translate Ben Mitch 22 Oct 2008 06:45:11
name Ben Mitch 22 Oct 2008 06:45:11
color Ben Mitch 22 Oct 2008 06:45:11
color Yashar Mehmani 03 May 2010 20:59:03

Contact us at files@mathworks.com