Maximize the size of figures and GUIs to fill the entire screen.
The function was tested under the following conditions:
Matlab version: R12, R13
The function was calibrated to handle WinXP standard toolbar (at the bottom of the screen, one icon row) and standard screen (4x3 ratio - not wide).
If you are using different settings, the maximized figure size could be wrong. If you find yourself in such a position, fear not. Run the function in 'calibrate' mode to calibrate the settings.
The application will ask you to maximize a figure window manually and use these settings as a reference from now on.
2005-03-21 update - contribution of Tim Myers
Maximize can set the image to fill any portion of the screen.
Yuval Cohen (2021). Maximize window (https://www.mathworks.com/matlabcentral/fileexchange/3812-maximize-window), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!