How do I change color of the segmented areas from an image?

1 ビュー (過去 30 日間)
Zara
Zara 2022 年 9 月 16 日
回答済み: Adam Danz 2022 年 9 月 16 日
I just need to change the areas with in the yellow range in these blots to the lower blue range. How can I do that?

回答 (1 件)

Adam Danz
Adam Danz 2022 年 9 月 16 日
Use the clim function.
  1. call clim without any inputs to see what the original colormap limits are.
  2. shift the clim upward (assuming you're using parula colormap).
Example:
If clim returns [-6 8], move it to something like [-2,10]. Play around with it until you get what you want.

カテゴリ

Find more on Colormaps in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by