When there is keyboard input, the command window of MatLab will gain focus and all its figure windows will be hiden back. How to make a figure window always on top? I use setWindowOnTop.m downloaded from
http://webscripts.softpedia.com/script/Development-Scripts-js/setWindowOnTop-37824.html
MatLab: figure window always on top (front)
9 sec read