Update UIAxes in App1 after computation in App2
Show older comments
Hello !
In App designer, I have built App1 and App2. In App1, I have a UIAxes and a button which, when activated, is used to plot the x and y variables in the UIAxes. I also have a second button that opens a second application (App2). In App2 I have a button which, when pressed, changes the value of y. I would now like to update App1's UIAxes with the new y value.
I've attached the App1 and App2 files with the associated code. When I press the button in App2, I get the following error message:
Unrecognized method, property, or field 'UIAxes' for class 'matlab.ui.Figure'.
Error in app2/ComputeButtonPushed (line 30)
plot(app.app1handle.UIAxes, app.x, app.y);
Error in matlab.apps.AppBase>@(source,event)executeCallback(ams,app,callback,requiresEventData,event) (line 62)
newCallback = @(source, event)executeCallback(ams, ...
Error while evaluating Button PrivateButtonPushedFcn.
Any help would be appreciated.
Accepted Answer
More Answers (0)
Categories
Find more on Develop Apps Using App Designer in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!