GUIDE: findobj() results in handle to deleted Line

조회 수: 1 (최근 30일)
Hans Sunaryanto
Hans Sunaryanto 2019년 8월 26일
댓글: Rik 2019년 8월 26일
Hi All,
I'm trying to extract line information from two different plots in GUIDE. My approach is to plot the first -> save it into base workspace -> switch axes -> plot the second -> save it into base workspace
Once this is done, I then tried to check if this works using the following function:
a = findobj(handles.axes1, 'Type', 'Line')
b = findobj(handles.axes2, 'Type', 'Line')
b does give a result, however a would give the following error:
'handle to deleted Line'
Any idea for any workaround?
Thanks!
  댓글 수: 2
Rik
Rik 2019년 8월 26일
It makes sense that the practice has a name. Good to know it now, thanks.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by