Each time a title is added to an axes within a GUI in MATLAB 7.0.1 (R14SP1), the position of the axes will change. This behavior only occurs for GUI figures containing a colorbar, and only when the argument to the TITLE command is a cell array containing two or more string elements:
axes(handles.axes1)imagesc(rand(256,256));hcbar = colorbar;str_cell{1}='example of behavior';str_cell{2}='of behavior';title(str_cell)
Best Answer