Hi,
As part of my program, I am developing an app.
The app requires me to present some results as plots (6 plots) that must be updated every two seconds.
Using 'drawnow' causes the processing to be slow.
I need to use the command 'refreshdata', however, it does not appear to work the same way as the code I developed as a .m file.
It would be greatly appreciated if anyone could provide me with some guidance on this subject.

回答 (2 件)

Aditya
Aditya 2022 年 8 月 24 日
移動済み: Cris LaPierre 2022 年 8 月 24 日

0 投票

You could try linkdata.
Here is a link you can explore

1 件のコメント

MOSTAFA GOMAR
MOSTAFA GOMAR 2022 年 8 月 24 日
Hi,
Thank you for your answer.
I tried several times and none of the method like linkdata and refreshdata works in appdesigner.
It works in my mfile but not in appdesigner.

サインインしてコメントする。

Cris LaPierre
Cris LaPierre 2022 年 8 月 24 日

0 投票

In an app, for this situation, I prefer updating the XData and YData of the line rather than replotting. See this answer:

1 件のコメント

MOSTAFA GOMAR
MOSTAFA GOMAR 2022 年 8 月 24 日
Hi,
Thanks for hour help. it works.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeStartup and Shutdown についてさらに検索

質問済み:

2022 年 8 月 24 日

コメント済み:

2022 年 8 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by