Make Matlab stop maximizing every time it changes a variable.

When a run a .m script, whenever MatLab changes a variable he maximizes, even if I minimize it will just maximize again. Is there any way of disabling that?

7 Kommentare

What is it that maximizes ?
Sorry for the lack of technical names, I refer to the main window. The one called "Matlab R2012b".
If that's not clear, let me try to be a little more clear: Say, I open the 'editor' window, click 'Run' and then, while the script runs, the "Matlab R2012b) tries to stay constantly maximized.
What does your script look like? MATLAB will try to elevate itself for certain things such as graphics.
Yeah, actually, it does various image manipulations(image painting, im2bw, edge finding), so that explain it. But still, is there any way to disable that?
@Shizuka: It is not clear, at leat to me, what actually happens. It is not trivial to maximize the command window, such that I do not expect that this happens by accident. Even for image manipulation, only the concerned figure should be lifted to the fronmost position, but not maximized.
I suggest to set a breakpoint in your program and step through the code line by line until you find the line, which causes the observed effect. Then post this line here.
Also, what operating system you are using might be relevant. If it's Linux, also let us know what window manager is in use.
I'm using Windows. I'm going to try and find what is maximizing the window now.

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Sean de Wolski
Sean de Wolski am 7 Mär. 2013
In order to use graphics (and update them) there are a few things you can do.
  • Turn the figure's visibility off:
hFig = figure('Visible','off');
surf(peaks);
Now to turn it on after it's done:
set(hFig,'Visible','on');
  • The other option is to use low-level plotting functionality such as line, surf and patch. These don't elevate ML.

Weitere Antworten (0)

Kategorien

Mehr zu Creating, Deleting, and Querying Graphics Objects finden Sie in Hilfe-Center und File Exchange

Tags

Noch keine Tags eingegeben.

Community Treasure Hunt

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

Start Hunting!

Translated by