フィルターのクリア

Send multiples data and plot from .m script to AppDesigner

1 回表示 (過去 30 日間)
Siti Husna Anuar
Siti Husna Anuar 2024 年 2 月 27 日
回答済み: Aman 2024 年 3 月 14 日
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?

回答 (1 件)

Aman
Aman 2024 年 3 月 14 日
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!

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by