Hello everyone,
I am working on a live indoor localisation project. Basically I have the code,
while true
localize()
end
the localisation works fine. The function at the end has a command which plots a point in the visualisation where the object was. My problem is i get the plot only after i stop the function. So at the end i can see the path which object followed but i want it to be live so that the all points will be drawn immediately.
Event though i have command in localise it does plot all the point after i stop function. Does anyone have any idea about how to fix it ?
Thank you so much

 採用された回答

Rik
Rik 2017 年 11 月 27 日

0 投票

Use drawnow and/or a short pause. This will give Matlab time to process callback to buttons and update visuals.

その他の回答 (1 件)

Alejandro Ungría
Alejandro Ungría 2017 年 12 月 2 日

0 投票

Thank you, works perfectly!

1 件のコメント

Rik
Rik 2017 年 12 月 2 日
You're very much welcome.
(Note that you put this reply in a new answer, instead of clicking on 'Comment on this Answer'. This can make it unclear what you are replying to.)

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

カテゴリ

ヘルプ センター および File Exchange2-D and 3-D Plots についてさらに検索

質問済み:

2017 年 11 月 27 日

コメント済み:

Rik
2017 年 12 月 2 日

Community Treasure Hunt

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

Start Hunting!

Translated by