Wednesday, April 18, 2012

Add a label to a colorbar in Matlab

I find myself Googling for this one every time I need to label a colorbar in a Matlab plot.

To add a label to your colorbar:

h = colorbar;
ylabel(h, 'Water depth, m');


We'll cover stuff like this in our next Figure Club meeting on Matlab tips and tricks.

No comments:

Post a Comment