- Add a property (I will call it app2_handle)
- Add a startupFcn callback to the UIFigure
- In the startupFcn, call the constructor for app2 and assign the handle to app2_handle.This function in app1 looks like:
- Add a ButtonPushed callback to the button in app1.
- In ButtonPushed, use app2_handle to manipulate the SelectedTab. An example of this function could be: