For quite some time, people have created many entries for controlling the state of figure windows. Some of them set the figure position to match the size of the screen. Some even adjust the size so that the window does not overlap with the task bar. Other entries make use of the underlying JavaFrame.
- 'normal' (default) – The normal state of figure windows.
- 'maximized' – Same as clicking on the maximize button on the figure.
- 'minimized' – Same as clicking on the minimize button on the figure.
- 'fullscreen' – Fills the screen with the minimize, restore, close button hidden.
f = figure; f.WindowState = 'maximized';
Give it a try and let us know what you think here.
Get the MATLAB code
Published with MATLAB® R2018a
Comments are closed.