필터 지우기
필터 지우기

Matlab Gui disapear(closes) after program executed

조회 수: 3 (최근 30일)
golnoosh
golnoosh 2014년 1월 9일
답변: David Sanchez 2014년 1월 9일
Hi,
It's been for a while that i am struggling with the following problem, please answer me.
I made one GUI in MATLAB, in this GUI, I get Neural Network parameters from the user and then press the "Run" button for training. After I press the button, the program starts executing in command window, if I switch to the command window to see the results, the GUI form automatically closes. Even if I don't switch between windows, after the execution, the GUI form is not open anymore. I want to run my program based on different iterations, so in this case I have to run the program every time. I even made exe file from my program, but the problem is still there.
Please guide me through this problem.
Thanks
  댓글 수: 1
Mischa Kim
Mischa Kim 2014년 1월 9일
편집: Mischa Kim 2014년 1월 9일
Please share the .m file of the GUI as an attachment to your question.

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

채택된 답변

David Sanchez
David Sanchez 2014년 1월 9일
Make sure you do not have a
close all
anywhere in your code. It is common practice to add a
clear all
close all
at the beginning of some scripts, and when these are used by a GUI, it might cause issues like yours.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Sequence and Numeric Feature Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by