Set Figure to Screen
by Robert M. Flight
31 Oct 2008
(Updated 20 May 2009)
Useful for defining default figure locations on multiple monitors
|
Watch this File
|
| File Information |
| Description |
Like to use multiple monitors? Don't like Matlab default figure behavior for multiple monitors? This function allows one to define which monitor figures will be drawn on by default. It also allows one to set the default position based on monitor, or a previously drawn figure. This means you can even set the default position to fill an entire monitor!
Examples:
set_figure_toscreen(a)
Where 'a' is numeric, either a monitor number (1, 2, 3, 4) or a figure handle.
set_figure_toscreen(opt,a)
Where opt is a string, either 'mon' to use a monitor, or 'fig' to
use a figure handle. a should be either a monitor number (if using 'mon') or a figure handle (if using 'fig').
|
| MATLAB release |
MATLAB 7.6 (R2008a)
|
| Other requirements |
Only tested on Windows XP, no idea about behavior for Linux or Mac systems.
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 03 Nov 2008 |
As suggested, added an H1 line and corrected the logical conditions. |
| 03 Nov 2008 |
Reorganized into two sections, decision making based on input and actual calculations to change figure position in order to make the function more readable by users. Functionality is unchanged. |
| 20 May 2009 |
Removed the use of a Java COM object specific to PC systems in order to make it more general, as well as the ability to set default based on the Matlab position.
|
|
Contact us at files@mathworks.com