Delete a specific shape of marker from a plot

조회 수: 6 (최근 30일)
Jason
Jason 2020년 1월 6일
댓글: Jason 2020년 1월 6일
Hello, I am plotting data using dots and then superimpose a marker of type '+' at certain locations. Is it possible to delete just the '+' markers from the GUIDE axes.
I have tried
delete( findobj(gca, 'type', 'line') );
But this deletes all the markers (including '.')
Thanks
Jason

채택된 답변

Adam Danz
Adam Danz 2020년 1월 6일
delete(findobj(gca, 'Marker', '+'))

추가 답변 (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