How do I manage and pass information between my main app and all of its children?
2 次查看(过去 30 天)
显示 更早的评论
(Unable to share code due to security issues)
I made an app in app designer to plot selected data files. I also created a child app which allows the user to update axis limits on the parent app's graph, following Mathworks' documentation to get them to communicate with one another.
Along those same lines, how can I expand this notion (sharing information between two apps) to work with any number of instances of a single child app? For example, I'd like to be able to call (for example) 10 instances of the same child app from my parent app, and be able to communicate with them separately. As I do not know how many child apps a user will call at one time, it does not seem feasible to add a property to store each open instance (as indicated in the documentation referenced above).
0 个评论
回答(1 个)
Image Analyst
2020-4-1
You can find some help in the FAQ: https://matlab.fandom.com/wiki/FAQ#How_can_I_share_data_between_callback_functions_in_my_GUI.28s.29.3F
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!