Zerocolor

Set colormap entry for zero values to specified RGB color

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

The images are generated by the examples in the help section.

zerocolor(CLR)
Updates current figure's colormap so that zeros get color CLR. CLR is a vector between 0-1, e.g. [.4 .2 .9] or a standard MATLAB color string.

cmap = zerocolor(H,CLR)
Returns the updated colormap cmap based on the figure with handle H.

See the function help for all the syntax options. Not hard to adjust the code for an arbitrary value other than zero.

feedback is welcome

引用

Jurgen (2026). Zerocolor (https://jp.mathworks.com/matlabcentral/fileexchange/39985-zerocolor), MATLAB Central File Exchange. に取得済み.

謝辞

ヒントを得たファイル: SC - powerful image rendering, Adaptive Colormap Function Creates a Colormap Specific to Data

ヒントを与えたファイル: Valcolor

カテゴリ

Help Center および MATLAB AnswersColor and Styling についてさらに検索

一般的な情報

MATLAB リリースの互換性

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

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

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