wait for plot to finish

92 ビュー (過去 30 日間)
Stephan He
Stephan He 2016 年 4 月 28 日
コメント済み: Stephan He 2016 年 4 月 28 日
Hello,
I am plotting quite a huge amount of data points using the scatter3 function in a GUI. Doing so the program keeps on running while the data plot isnt finished yet. (I tested it with tic/toc before and after the plot which gave me way to short timings)
Is there a way to stop matlab from continuing until the plot is finished and visible?
Best Regards, Stephan

採用された回答

Jan
Jan 2016 年 4 月 28 日
What about drawnow?
  1 件のコメント
Stephan He
Stephan He 2016 年 4 月 28 日
Thanks Jan. Its kind of contraintuitive to stop running by an update function, but it works ;)

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

その他の回答 (1 件)

Ilham Hardy
Ilham Hardy 2016 年 4 月 28 日
Hi,
Perhaps you will need this? waitfor()
  1 件のコメント
Stephan He
Stephan He 2016 年 4 月 28 日
Hi Ilham,
I did consider this function but for now I couldnt get it to work: If i just use the call with the object, it actually waits for me to close the axes, which I will not. Then I dont know how to utilize the second call option with the changing property since I couldnt figure out any property that would change when finishing the plot.
Could you explain you idea more in detail please?
Best Regards, Stephan

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

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by