필터 지우기
필터 지우기

How to pass a variable from one GUI to other GUI

조회 수: 2 (최근 30일)
mohanish
mohanish 2018년 10월 4일
댓글: Adam Danz 2018년 10월 18일
I am writing code in which I have multiple GUI interlinked with each other. I want a variable data from GUI1 to be used in GUI2. It is basically GMM data from GUI1 that i need to transfer to GUI2. In GUI1 : I have this data.. [d]=gmm_estimate(v (:,no_coeff)',No_of_Gaussians, No_of_iterations);
this generates matrix of coefficients I want this data to used in GUI2.. I want these coefficients to compare with the coefficients of GUI2 How do I call or transfer this data to GUI2?

채택된 답변

Adam Danz
Adam Danz 2018년 10월 4일
  댓글 수: 31
mohanish
mohanish 2018년 10월 18일
Alright! I got it! I read some documents and figured it out. I am successful in passing the data to my other Gui. Thank you so much for your help Sir!
Adam Danz
Adam Danz 2018년 10월 18일
Nice! Good job.

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

추가 답변 (1개)

Stephen23
Stephen23 2018년 10월 18일
편집: Stephen23 2018년 10월 18일
In GUI1, where d is the data that you want to transfer:
setappdata(0,'mydata',d);
IN GUI2:
d = getappdata(0,'mydata');
See:
This might not work for MATLAB versions from R2014b.

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by