Azzera filtri
Azzera filtri

Send multiples data and plot from .m script to AppDesigner

1 visualizzazione (ultimi 30 giorni)
I am writing a code in a .m script. From there, I generated a plot and get several different values that I wanted to display them at my AppDesigner. How can I send multiples data and plot from .m to AppDesigner? And is it possible to do it live if the data I generated in the .m script is also generated live from esp32?

Risposte (1)

Aman
Aman il 14 Mar 2024
Hi Siti,
As per my understanding, you want to send data in real time from a MATLAB script to the app designer for creating plots in the app.
In order to do that, you can use the event-based approach. You need to attach a listener to the app designer end using the "addlistener" function on the startup of the app using the "startupFcn" callback. In the MATLAB script, you need to use the "notify" function to publish the data to which the observer will listen.
You can refer to the below two links to learn more about the "addlistener" and "notify" functions.
I hope this helps!

Categorie

Scopri di più su Develop Apps Using App Designer in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by