undecorateFig removes the border, title bar, menu bar and toolbar of a Matlab figure.
redecorateFig restores the figure to its previous (decorated) state.
undecorateFig(hFig) % hFig is a figure handle or any other GUI handle (default: current figure)
This code heavily relies on undocumented and unsupported Matlab functionality. It is expected to work on Matlab 7 and higher, but use at your own risk!
Yair Altman (2023). undecorateFig - remove/restore figure border and title bar (https://www.mathworks.com/matlabcentral/fileexchange/50111-undecoratefig-remove-restore-figure-border-and-title-bar), MATLAB Central File Exchange. 检索来源 .
平台兼容性Windows macOS Linux
参考作品： getjframe - Retrieves a figure's underlying Java frame, enable/disable entire figure window, setFigTransparency - set figure transparency / fading, blurFigure - blurs and prevents interaction on figure window
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!