This bug has been fixed in Release 2007a (R2007a). For previous product releases, read below for any possible workarounds:
There is a bug in MATLAB 7.0.1 (R14SP1) when using a figure colorbar in conjunction with an axes title for axes titles containing multiple element cell array arguments.
To work around the problem, store the axes position and revert back to this position following each call to TITLE, as shown::
pos_orig=get(handles.axes1,'Position');
axes(handles.axes1)
imagesc(rand(256,256));
hcbar = colorbar;
str_cell{1}='example of behavior';
str_cell{2}='of behavior';
title(str_cell)
set(handles.axes1,'Position',pos_orig);
Best Answer