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

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.

댓글을 달려면 로그인하십시오.

 채택된 답변

Sean de Wolski
Sean de Wolski 2013년 3월 7일
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.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by