How to end ginput?

23 次查看(过去 30 天)
Sandy
Sandy 2016-5-31
评论: Adam Danz 2020-9-25
I have a code that uses ginput to gather data. I keep getting this message when I am done gathering data and close the figure.
Error using ginput (line 81)
Interrupted by figure deletion
Error in plotdecon5b (line 52)
[x,k]=ginput;
Is there a way to tell ginput I am done selecting data and not have to close the figure?

采纳的回答

Jos (10584)
Jos (10584) 2016-5-31
try, xy = ginput, catch end
  3 个评论
Jos (10584)
Jos (10584) 2016-6-1
?? On my matlab version ginput is exited by pressing enter. I think the code you are using is flawed ...
Adam Danz
Adam Danz 2020-9-25
Jos is correct and it's clearly stated in the documentation.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Visual Exploration 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by