assign color to the colorbar

2 ビュー (過去 30 日間)
Shahin sohrabi
Shahin sohrabi 2020 年 8 月 21 日
回答済み: Srivardhan Gadila 2020 年 8 月 23 日
Hello,
I have two 2-D matrices that the first one has arrays between -20 to 35. I have a color figure for this first matrix. The other matrix has arrays between 5 to 16. For this second one,I want to have a color figure with the "same color "as the first one (for example both figure shows array 5 with blue) but the colorbar limits between 5 to 16. Does any one know how I can do this?
Thanks in advance.

回答 (1 件)

Srivardhan Gadila
Srivardhan Gadila 2020 年 8 月 23 日
You can set same limits using caxis. Refer to the documentation of Control Colormap Limits & caxis.

カテゴリ

Help Center および File ExchangeColormaps についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by