This functions wraps Matlab figure function, allowing the user to set the figure size to one of the two following states- full screen or non full screen (figure default). As figure function results with non-maximized dimensions, the default in this function if full screen figure (otherwise there is no reason to use this function). It also can be used to resize the figure, in a manner similar to clicking the "Maximize"/"Restore down" button with the mouse.
All Figure Properties acceptable by figure function are supported by this function as well.
Based on hidden Matlab features described at: http://undocumentedmatlab.com/blog/minimize-maximize-figure-window/
Nikolay S. (2019). Minimize/maximize figure window (https://www.mathworks.com/matlabcentral/fileexchange/31793-minimize-maximize-figure-window), MATLAB Central File Exchange. Retrieved .