Give a specific color to an interval of value

3 ビュー (過去 30 日間)
Giacomo Abrardo
Giacomo Abrardo 2021 年 5 月 14 日
回答済み: Walter Roberson 2021 年 5 月 14 日
Hi, i have to plot with pcolor a matrix with values from -1 to 1. How can i assign to the values from -1 to 0.3 a color in grey scale and to the values from 0.3 to 1 a color in green scale? Thank you all
  2 件のコメント
Walter Roberson
Walter Roberson 2021 年 5 月 14 日
Are you talking about exactly two colors? Or are you talking about shades of colors -- that -1 to 0.3 is shades of grey and 0.3 to 1 is shades of green?
Giacomo Abrardo
Giacomo Abrardo 2021 年 5 月 14 日
I'm talking about shade of colors

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2021 年 5 月 14 日

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeColor and Styling についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by