Tuesday, January 17, 2012

Change Label of a Colorbar in Matlab

Hi there,

Everytime I need this code, I don't know where to look for it. I hope google will find it from my page, and help other users.

The problem is: You need to label the colorbar in a plot, and you don't know how.

Solution:

set(get(h.colorbar,'YLabel'),'String','myLabel')


Leave your comments if you have a better idea.

Thanks

I'm back

Hi there,

after many years of absence, I'm back. I will post again my matlab & Co tricks. Thanks!