Bala's Website Bala's Website
Search
Adding a title to colobar in Matlab

To insert a title to the colorbar in matlab.  Use the following code(Source):

load mandrill % Loads a data for the example
image(X) % Plots an image for the example
t=colorbar;% Inserts a colorbar. a handle is created
set(get(t,'ylabel'),'string','My colorbar title','Fontsize',10) % sets the ylabel property of the handle t.

Leave A Comment