name2rgb

Return the rgb vector of a color name.

現在この提出コンテンツをフォロー中です。

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>

引用

Peder Axensten (2026). name2rgb (https://jp.mathworks.com/matlabcentral/fileexchange/11750-name2rgb), MATLAB Central File Exchange. に取得済み.

謝辞

ヒントを与えたファイル: Convert between RGB and Color Names

一般的な情報

MATLAB リリースの互換性

  • すべてのリリースと互換性あり

プラットフォームの互換性

  • Windows
  • macOS
  • Linux
バージョン 公開済み リリース ノート Action
1.0.0.0

- Much more efficient (and elegant?) code, thanks to Urs (us) Schwarz!