필터 지우기
필터 지우기

Matlab opens a figure on its own with this funny feature!

조회 수: 5 (최근 30일)
Steven
Steven 2015년 10월 19일
댓글: Walter Roberson 2015년 10월 20일
Hi
I am sure I have only one figure,plot(...) command in my code, but when I run it, it first creates this funny figure (with lot of menu!!) and then opens my figure as figure 2!
And then when I try to close it manually, the whole Matlab crashed!
I am so surprised! I checked again every thing, but I do not know what the cause is!
Can someone help?
This is the code I use:
figure,plot(t,A,'-b','linewidth',2,'markersize',12);
set(gcf,'units','normalized','outerposition',[0 0 1 1]);
set(gca,'fontweight','bold','fontsize',12);
Thanks!
Steven

채택된 답변

Jan
Jan 2015년 10월 19일
This my question of the week. Obviously you've installed the toolbox for parallelized user interfaces by accident.
Most likely you've shadowed an important built-in function, which is called inside the commands to create the GUI of a figure. So try to remove the user-defined folders from the path at first and run your code again. If this still does not work, a re-installation of Matlab seems to be a good idea - of course after testing the behavior after a restart of the computer.
Good luck!
  댓글 수: 3
Steven
Steven 2015년 10월 20일
Thank you Jan and Walter. The problem is now resolved. The problem seemed to exist for only that path. When I run the same code in another path, it is fine!
Thanks!
Walter Roberson
Walter Roberson 2015년 10월 20일
Which .m files are in that directory?

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

추가 답변 (1개)

Image Analyst
Image Analyst 2015년 10월 19일
This works fine for me in R2015b.
t = rand(1,40);
A = rand(1, length(t));
figure,plot(t,A,'-b','linewidth',2,'markersize',12);
set(gcf,'units','normalized','outerposition',[0 0 1 1]);
set(gca,'fontweight','bold','fontsize',12);
What did you use for t & A? What version did you use, and in what operating system?
  댓글 수: 1
Steven
Steven 2015년 10월 19일
t and A are usual arrays (like yours).
I am using R2013a on Windows 7.
Thanks

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

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by