Customize Colormap for discret values

Hello,
I need to build a a "really" customized color map.
I have a matrix with discret entrys from -1 to 30.
-1 is the default variable and should be displayed in white. 29,30 should be grey. the rest could be continous like the existing colormaps or also be set by value.
If searched online but I couldn't get an answer. Is there even a function like that?
Thanks a lot in advance.

답변 (0개)

이 질문은 마감되었습니다.

질문:

2013년 3월 22일

마감:

2021년 8월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by