Apply Standard+ Keyboard Shortcuts Keys to a Figure Window
Updated 26 Sep 2014
I habitually use Keyboard shortcuts to get around, Ctrl+0 to go to the Command Window, Shift+Ctrl+0 to the editor etc., but as soon as a plot is thrown up they don't respond. What's more is that I often generate lots of figures and it is hard to get around by Alt-Tab. So I added these functions:
Close all windows (Ctrl+Shift+W)
Close all windows Except this one (Ctrl+Shift+E)
and (un)Dock all (Ctrl+Shift+A).
Reflects changes to shortcuts introduced by MATLAB R2012b.
It is most useful if set-up by default (see Help) using
set(0, 'DefaultFigureKeyPressFcn', @figDefaultKeyPress)
Julian (2023). Apply Standard+ Keyboard Shortcuts Keys to a Figure Window (https://www.mathworks.com/matlabcentral/fileexchange/39152-apply-standard-keyboard-shortcuts-keys-to-a-figure-window), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired by: DRAGZOOM - Drag and zoom tool
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Updated: ADDS new .m file!! with quick Help F1, changes to shortcuts since 2012b, Alt+P for print to file, and Ctrl+D for dragzoom (I am addicted) toggle
Updated: adds quick Help, changes to shortcuts since 2012b, Alt+P for print to file, and Ctrl+D for dragzoom (I am addicted) toggle