How do I suppress a window opened by a Matlab function?
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Frank Wuechner
il 6 Dic 2017
Commentato: Frank Wuechner
il 15 Dic 2017
Hi! I am running the mdf function of vehicle network toolbox to batch-process mdf files. Each time a file is opened, several load screens are popping up to show the load progress. This takes only some miliseconds, but the OS (win7) focuses on each load screen - in effect, the PC is blocked as long as files are read (several times a second for up to 20 minutes) because the focus is permanently reset to the popups. I did not find an option in the mdf function itself to switch to some kind of silent mode.
2 Commenti
Pista Lele
il 8 Dic 2017
Modificato: Pista Lele
il 8 Dic 2017
I'm doing exactly the same thing and I have the same issue. Couldn't solve it so far.
Risposta accettata
Walter Roberson
il 11 Dic 2017
Try adding a function on your path:
function wb = waitbar(varargin)
if nargout > 0
wb = matlab.graphics.GraphicsPlaceholder;
end
provided you are using R2014b or later. If you are using an earlier version, then the function needs to be made more complex, as waitbar() needs to return a graphics handle that can later be delete()'d
7 Commenti
Jan
il 13 Dic 2017
@Frank: If the windows are opened from P-functions, you cannot suppress their creation directly. It might work, if you shadow the corresponding built-in function: create figure.m inside the folder of the P-file and let it create an invisible figure:
function H = figure(varargin)
H = figure(varargin{:}, 'Visible', 'off');
end
But this is near to hacking and can have evil side-effects.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Environment and Settings in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!