How to communicate two matlab gui?
이전 댓글 표시
Hello, I am creating a maingui and subgui. There is push button in the maingui after clicking it I want to open subgui and then in subgui there is edittext box in which I want to put value after putting the value I want to close that window and want to use that editbox value in the main gui and want to display the calculation under pushbutton of maingui into another textbox. Can anyone suggest the solution using example? Thanks..!!
댓글 수: 5
The MATLAB documentation clearly explains how to pass data between callbacks, and it has examples:
and it also has clear explanations of how to pass data between workspaces:
My favorite is to use nested functions: simple, intuitive, fast, efficient.
Adam
2017년 1월 31일
Here was a similar discussion in the past where I detailed my preferred solution for GUI communication
For this case though, if it is as simple as you say then the simple methods used in the documentation work fine, most particularly uiwait with uiresume and a modal second GUI so that you have to respond in that GUI, then it will close and only then can you do anything back in the main GUI again.
My solution is for the more general approach of two GUIs communicating where you do not necessarily wish to have to do everything in the 2nd GUI and close it down before you can do anything in the main GUI.
VISHWAS CHAVAN
2017년 1월 31일
Adam
2017년 1월 31일
That page is full of examples. What are you expecting us to do? Spend our whole morning copying it out from there to here?
VISHWAS CHAVAN
2017년 2월 1일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Signal Generation, Manipulation, and Analysis에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!