Set Figure to Screen

版本 1.3.0.0 (2.7 KB) 作者: Robert M. Flight
Useful for defining default figure locations on multiple monitors
1.8K 次下载
更新时间 2009/5/20

查看许可证

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').

引用格式

Robert M. Flight (2024). Set Figure to Screen (https://www.mathworks.com/matlabcentral/fileexchange/21958-set-figure-to-screen), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2008a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Interactive Control and Callbacks 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.3.0.0

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.

1.2.0.0

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.

1.1.0.0

As suggested, added an H1 line and corrected the logical conditions.

1.0.0.0