필터 지우기
필터 지우기

How can I transfer data from one GUI to another one?

조회 수: 3 (최근 30일)
Flávio
Flávio 2013년 4월 11일
So, I have 2 GUI's that I made using GUIDE instead of using code. And what I want now is, when I push a pushbutton, the second GUI opens and shows some information. This information is contained in a variable in the first GUI, so I need to transfer this variable to the second GUI but I don't know how...
I know one option is to save the variable in a .mat file and then load the file from the second GUI, but this method does'nt seems like the optimal one.
Sorry for my bad English!
Thanks!

채택된 답변

Leah
Leah 2013년 4월 11일
You can also use a global variable or pass the value via the callback function. The callback function in this case is the function that opens the new GUI. Your English is great!

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by