How do I maximize the web browser window?
Ältere Kommentare anzeigen
When you create a web window through matlab (like web(Url)) how do you maximise/change the window size in script?
3 Kommentare
madhan ravi
am 4 Mär. 2019
which OS?
Paul Smith
am 5 Mär. 2019
madhan ravi
am 5 Mär. 2019
Unfortunately in the doc all I can see is for Linux :https://in.mathworks.com/help/matlab/matlab_env/web-browsers-and-matlab.html#brzpr8a-1
Akzeptierte Antwort
Weitere Antworten (1)
Anant Upadhyay
am 7 Mär. 2019
According to my knowledge, there is currently no built-in functionality to maximize, minimize or get the state of a figure in MATLAB.
As a workaround for MATLAB 7.4 (R2007a) and later versions, the attached files maxfig.p, minfig.p and figstate.p (with help files maxfig.m, minfig.m and figstate.m) allow you to perform these actions as follows:
minfig(F,1) % Minimizes the figure window for the figure with handle F
minfig(F,0) % Restores figure F if F is minimized
maxfig(F,1) % Maximizes the figure window for the figure with handle F
maxfig(F,0) % Restores figure F if F is maximized
s = figstate(F) % Returns the state of figure { Maximized | Minimized | Normal }
Please note that querying the figure position immediately after using these functions may not work reliably unless the figure resize is complete.
There are no workarounds for versions prior to MATLAB 7.4 (R2007a).
If you are using GUIDE with the Resizable set to off?
Go to: GUIDE->Tools->GUI Options->Resizable Behavior
Kategorien
Mehr zu Interactive Control and Callbacks finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!