share data between 2 uifigure in app designer version 2017
2 次查看(过去 30 天)
显示 更早的评论
I search an example in matlab to share data between 2 uifigure which are created in app designer (version 2017A). I don't find any example on the Mathwork site. If someone has an example of two GUI created in appdesigner 2017 and which share data between them.
Thanks in advance
Fabienne Guerville
0 个评论
回答(1 个)
Adam Danz
2020-5-28
编辑:Adam Danz
2020-5-28
Here's the page you're looking for in Matlab's documentation.
https://www.mathworks.com/help/matlab/creating_guis/share-data-across-callbacks-in-app-designer.html
The main idea is to access an app's handle from within the 2nd app. Here's a demo:
Note that AppDesigner features are still be rolled out. r2017a has a relatively early version of AppDesigner but these methods should still be good to go for that release.
2 个评论
Adam Danz
2020-5-28
I added a 2nd link to my answer that shows a demo.
To execute the example in the first link, instead of loading the example in the command line, just copy-paste each block of code on that page line by line.
If you have any specific questions, please let us know.
另请参阅
类别
在 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!