USAGE: color_vector= name2rgb(color_name)
Return the rgb vector of a color name.
EXAMPLE:
name2rgb2({'r', 'blue', 'pp', 'y'})
ans = 1 0 0 0 0 1 NaN NaN NaN 1 1 0
HISTORY:
Version 1.0, 2006-07-19.
Version 1.1, 2006-07-22:
- Much more efficient (and elegant?) code, thanks to Urs (us) Schwarz!
Copyright (C) Peder Axensten <peder@axensten.se>
Citar como
Peder Axensten (2026). name2rgb (https://es.mathworks.com/matlabcentral/fileexchange/11750-name2rgb), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R14SP1
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
- Image Processing and Computer Vision > Image Processing Toolbox > Image Filtering and Enhancement > Image Arithmetic >
Más información sobre Image Arithmetic en Help Center y MATLAB Answers.
Etiquetas
Agradecimientos
Inspiración para: Convert between RGB and Color Names
Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
| Versión | Publicado | Notas de la versión | |
|---|---|---|---|
| 1.0.0.0 | - Much more efficient (and elegant?) code, thanks to Urs (us) Schwarz! |
