Info

This question is closed. Reopen it to edit or answer.

How can I have a range for my colorbar, while also assigning a specific color to a specific value?

1 view (last 30 days)
Lets say I have a matrix that contains values from 0 to 1000. I want 1 to 1000 to have a rainbow colorbar (jet), and I want all zeros to be black. Any help would be highly appreciated. Thanks

Answers (0)

Community Treasure Hunt

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

Start Hunting!