- https://in.mathworks.com/help/matlab/ref/handle.addlistener.html
- https://in.mathworks.com/help/matlab/ref/handle.notify.html
Send multiples data and plot from .m script to AppDesigner
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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?
0 Kommentare
Antworten (1)
Aman
am 14 Mär. 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!
0 Kommentare
Siehe auch
Kategorien
Mehr zu Develop Apps Using App Designer finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!