I would like to plot this contour figure in grayscale. I would like to represent higher values in dark shades. Can anyone give me the command to plot this figure? Thanks.

 採用された回答

Walter Roberson
Walter Roberson 2018 年 5 月 23 日
編集済み: Walter Roberson 2018 年 5 月 23 日

2 投票

colormap( flipud(gray(256)) )
gray(256) would normally be brighter for higher values, so you reverse the order of the colors to get darker for higher values.

1 件のコメント

Namira
Namira 2018 年 5 月 23 日
Thanks. It's working.

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeContour Plots についてさらに検索

タグ

質問済み:

2018 年 5 月 23 日

コメント済み:

2018 年 5 月 23 日

Community Treasure Hunt

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

Start Hunting!

Translated by