Pass data between apps using a radio button
古いコメントを表示
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 件のコメント
Adam Danz
2020 年 11 月 15 日
Here's an overview on sharing data between apps
Sourabh Kondapaka
2020 年 11 月 18 日
What you are trying to achieve is a multi-window app and Adam Danz provided the correct matlab documentation link.
Adriana Dasier Marchena Garcia
2020 年 11 月 21 日
Lucas García Pérez
2020 年 11 月 21 日
I agree Adriana Dasier Marchena Garcia, I got the same problem as her, and there aren't any solutions on the Internet explaining how to solve that problem.
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 件)
カテゴリ
ヘルプ センター および File Exchange で Creating, Deleting, and Querying Graphics Objects についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!