File Exchange

image thumbnail


version (3.58 KB) by Rik
Maximize the figure window (multiple strategies implemented)


Updated 06 Oct 2019

View License

This function tries multiple solutions for maximizing the figure window, so it should work on nearly all releases of Matlab and Octave on nearly all OSes (Windows/Mac/Unix). This is written to be portable and shareable. If you know more solutions, please contact me, so I can add it to the list.

1 attempt to set the WindowState property to maximized
2 use JavaFrame to maximize the figure
3 press alt-space followed by x (Windows/Linux hotkey)
4 ugly solution: set the position to the screen size minus a small margin (this includes an attempt to check for a multiple monitor set up)

Licence: CC by-nc-sa 4.0

For the British English searchers:
maximise figure window
Logo taken from:

Cite As

Rik (2020). maximize (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (1)

moe joe


added WindowState option

updated alt-space X method

MATLAB Release Compatibility
Created with R2019b
Compatible with R13SP1 to any release
Platform Compatibility
Windows macOS Linux

Inspired by: maximize