Updated 18 Jul 2018
This function maximizes MATLAB figures on any platform, and any version of MATLAB at least as far back as 7.0 (possibly further). It takes a figure handle as input. Note: it doesn't simply resize the figure to fill the screen.
Oliver Woodford (2023). maximize (https://www.mathworks.com/matlabcentral/fileexchange/25471-maximize), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired by: findjobj - find java handles of Matlab graphic objects
Inspired: subfigure(nRows,nCols,figureId,varargin), Puma Robot Simulation, ISO 1999:2013, tilefigs
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.
Adds support for R2018a's Java-less WindowState property
Suppress JavaFrame obsoletion message
Fix bug reported by Heinrich Acker (thanks!).
Removed dependency on jFindobj, using an idea based on comments by Yair Altman on the newsgroup.