Minimize/maximize figure window
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/