MATLAB: Is the toolbar missing from the figure windows in MATLAB 7.4 (R2007a)

figureMATLABmissingpreferencestoolbar

Ususally, figure windows have a toolbar showing by default. However, recently, these have disappeared, and I have to do a convoluted series of enabling and disabling other toolbars, such as the camera toolbar, to get it back.
Restarting MATLAB, or even my computer does not help.

Best Answer

This can be caused by corrupted preferences.
The preferences folder location can be found with the following command at the MATLAB prompt:
prefdir
To refresh your preferences:
1) Close all sessions of MATLAB
2) Rename your MATLAB preferences folder (e.g. to R2007a_old)
3) Restart MATLAB
On launching, MATLAB won't find the old preferences, and will regenerate the preferences folder anew.