Passing Data between Apps in app designer - Table Data in app1 plotted in app2
Mostra commenti meno recenti
Hello,
I am trying to pass data from one applicationto another in matlab. Specifically, I am trying to pass the data that the user has defined in UITable data in the first app to a figure in the second app. I have gone through the documentation and the examples MATLAB provides. I have read through others solutions, and I truly do not understand the logic or the execution of this process.
Only column 2 in the UITable is relevant for the plot in the other application. Here are pictures of my setup. I blocked off the the other buttons and text to make it more simple. App 1 is the one with the table. App 2 is the one with the graph. When I press Visualize Structure in app1, app2 will be opened in order to plot the data from column 2.

Could somone please help me with this? I can provide more details if necessary.
Thanks!
2 Commenti
Siavash
il 20 Feb 2024
Hi, thank you for the information.
It worked for me as well.
I have another question: How can I close the window of the first app when the second one opens?
Adam Danz
il 20 Feb 2024
> How can I close the window of the first app when the second one opens?
Use the close command and specify the app's figure handle.
close(app.UIFigure)
You could also use delete but this will not invoke the figure's closing function.
delete(app)
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Develop Apps Using App Designer in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!