필터 지우기
필터 지우기

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