MATLAB: How to default a figure window to always stay on top in MATLAB 7.7 (R2008b)

figurefrontMATLABtopwindow

I want to make a figure window float in front of all other windows regardless of which window I have selected to work in.

Best Answer

The ability to set a figure window to always stay on top of other is not available in MATLAB 7.7 (R2008b).
To work around this issue, see the attached files alwaysontop.m/.p which will allow you to specify which figure to float on top of all other windows by its MATLAB figure handle. The following is an example usage that sets the second figure created (as specified by 'h2') to always be on top.
 
h = figure;
h2 = figure;
alwaysontop(h2)
Note that this only works for MATLAB releases prior to R2014b.