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

1 view (last 30 days)
Prabhjot Dhami
Prabhjot Dhami on 4 Mar 2021
Answered: Swetha Polemoni on 29 Mar 2021
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,

Answers (1)

Community Treasure Hunt

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

Start Hunting!

Translated by