MATLAB: Scaling the colorbar of the plot

codecolorbar

I want to scale the color bar to maximum and minimum values? which function should I use caxis or clim? and what is the difference between them

Best Answer

set(gca,'ylim',[min_yval max_yval]), %for y axis
Related Question