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!
Where 'a' is numeric, either a monitor number (1, 2, 3, 4) or a figure handle.
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 (2021). Set Figure to Screen (https://www.mathworks.com/matlabcentral/fileexchange/21958-set-figure-to-screen), MATLAB Central File Exchange. Retrieved .
Works well on R2017a in Mac OS X High Sierra.
If someone could test on Linux or Mac and inform me of behavior, that would be great. If it behaves unexpectedly, please send me a screenshot of the result, the command you gave, describe how your monitors are set up, and the output of the command: "get(0,'MonitorPositions')".
this doesn't work on Mac or linux machine due to the reference to a com.mathworks object in the code. Is there possible you can redefine the thing just by the monitor position. thank you
It does have help, although it does not contain an H1 line. An H1 line allows you to find your function with 'lookfor' when you have forgotten the exact function name.
The code has a weird order of execution making it harder to read. Furthermore, the M-lint brings up a number of improvements, some of them which are critical (use && instead of &)
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!