Compiled GUI not appearing

조회 수: 5 (최근 30일)
Joel Marchand
Joel Marchand 2015년 9월 15일
답변: Joel Marchand 2015년 9월 21일
I have been trying to compile a MATLAB based GUI and the code compiles without error. The GUI appears properly when running within MATLAB, but when I try to run the executable, the GUI itself does not appear, but is present in the Task Manager. While the program in question is a bit too large to post here, I have been able to duplicate the problem with a much smaller simple GUI. The m-file for the GUI is attached.
I am using MATLAB 2014A on 64 bit Windows 7 Professional.
  댓글 수: 4
Walter Roberson
Walter Roberson 2015년 9월 15일
Does it make a difference if you add a .m that calls the constructor explicitly ?
Joel Marchand
Joel Marchand 2015년 9월 15일
I have tried this, and the GUI still remains elusive.
Specifically, I tried compiling an M-file containing the following code:
function makeAtestGUI() T = testGUI(); uiwait(T.h); end
We have a pretty restrictive security profile on our PCs. Is it possible that something in the security profile is preventing the GUI from appearing? If so, where would I try to look?

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

채택된 답변

Joel Marchand
Joel Marchand 2015년 9월 21일
I just installed 2015B on my computer, and the problem seems to have gone away. While I do not know why it did not work in 2014A, the problem seems to been fixed.

추가 답변 (1개)

Sean de Wolski
Sean de Wolski 2015년 9월 15일
편집: Sean de Wolski 2015년 9월 15일
What Walter said.
function makeAtestGUI()
T = testGUI();
uiwait(T.h);
end
Now compile this.

카테고리

Help CenterFile Exchange에서 App Building에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by