maxfig
MAXimize a FIGure to fill the screen.
Contents
Syntax
maxfig(fig,extend,mode)
Description
Maximize a figure to fill the screen. Subsequent calls will restore the maximized figure to its previous state.
"fig" (first numeric input) is the handle of the figure to maximize (default is current figure).
"extend" (second numeric input) is a complex number specifying how
figures are to be created on the extended desktop.
Examples: +1/-1 is one screen to the right/left,
0 is the primary screen (default),
+i is one screen up,
-1-0.5i is half a screen down and to the left, etc...
"mode" is a string specifying whether to fully maximize the figure (borders extend beyond the monitor, menu and tool bars are removed) or set to normal mode with borders, menu & toolbars displayed. Value for maximize mode is any of {m,max,y,yes,t,true}(default). Value for normal mode is any of {n,normal,no,f,false}.
Will work with docked figures. Inspired by MAXFIGSIZE (ID 3036) by Duane Hanselman. Extended monitors must have the same resolution as the primary monitor. The figure properties, TAG and USERDATA, are used to keep track of the maximized figure.
Examples:
maxfig
maxfig(3,1+i)
maxfig([],-1)
maxfig('normal')
- Copyright 2006 Mirtech, Inc. created 08/23/2006 by Mirko Hrovat on Matlab Ver. 7.2
email: mhrovat@email.com