How to customize a colour map so that all values of 0 are equal to gray

23 ビュー (過去 30 日間)
Prabhjot Dhami
Prabhjot Dhami 2021 年 3 月 4 日
回答済み: Swetha Polemoni 2021 年 3 月 29 日
Dear Matlab Community,
I am working with a nifti (.nii) image. I would like to plot the values I have using the 'jet' colormap.
With for example the 'jet' colormap, all values of 0 would have a green color. However, I would like to keep the jet colormap, but alter it so that all values of 0 instead show a gray color.
Can anyone please help as to how I can do this?
Thank you,
P.

回答 (1 件)

Swetha Polemoni
Swetha Polemoni 2021 年 3 月 29 日
Hi
It is my understanding that you want to customize the colormap. You may find the following documentation helpful.

カテゴリ

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