How to change color bar limits in imagesc?

 Risposta accettata

You can do that task by setting CLim of the axes, like:
figure
imagesc(rand(4));
ax = gca;
ax.CLim = [0 1];
colorbar

Più risposte (0)

Categorie

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by