Pass data between apps using a radio button
조회 수: 1 (최근 30일)
이전 댓글 표시
I have an application that consists of the following,
I have a window one where you must select one of the options with 2 radio buttons What I want is that depending on the selection that the user takes. That data(value of the radio button) is transferred window 2 so that the corresponding graphs or information can be executed depending on the selection.
댓글 수: 6
Javier Sainz
2020년 11월 21일
It's true i tried the same "solution" and didn't get any positive result. I wish that in a not so far future this problem gets a more definitive solution.
Adam Danz
2020년 11월 21일
> What I want is that depending on the selection that the user takes. That data(value of the radio button) is transferred window 2 so that the corresponding graphs or information can be executed depending on the selection.
If "window 2" is another app, then that link and the link below contains everything you need for you to learn how to do this and there are very many similar similar questions in this forum that have terrific answers. These links show you how to access the "app" handle from within another app or from anywhere outside of the app. Once you have that handle you have access to the radio button values.
If "window 2" is a figure or something else, it depends on what's generating that figure. If the figure is generated internally to the app, then you already have access to the radio button values within the app. If the figure is generated outside of the app, then the link I shared are what you need to learn how to access the app handle.
In case that's still not enough, here are other examples,
- https://www.mathworks.com/matlabcentral/answers/403694-how-to-get-handle-from-currently-running-app-made-in-app-designer#answer_493333
- https://www.mathworks.com/matlabcentral/answers/462282-creating-apps-communicate-each-other-with-app-designer#answer_428683
- Bottom half of this link: https://www.mathworks.com/matlabcentral/discussions/highlights/133348-new-in-r2020b-record-snapshots-of-your-app
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!