简体   繁体   English

MATLAB应用程序设计器:在两个应用程序之间共享数据(在启动功能中,不使用按钮提取第二个应用程序中的数据)

[英]MATLAB app designer: Share data between two apps (in startup function not using button to extract data in second app)

Suppose that we have same example in Share Data Among Multiple UI Figure Windows in MATLAB documentation, but we don't have a plot button in second app. 假设我们在MATLAB文档中的“ 在多个UI图之间共享数据”中有相同的示例,但是在第二个应用程序中没有绘制按钮。 We want directly show data in axis in second app when we push calculate and share button (when we push calculate and share button in first app, the second app will open and show the plot). 当我们按下计算和共享按钮时,我们想直接在第二个应用程序的轴上显示数据(当在第一个应用程序中按下计算和共享按钮时,第二个应用程序将打开并显示绘图)。

Add a public method (function) in the plotting GUI object. 在绘图GUI对象中添加一个公共方法(函数)。 This method can be called by the parent GUI and can execute the plotting in the same way as the button push call back. 父GUI可以调用此方法,并且可以按按钮回叫相同的方式执行绘图。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM