undo textm on a map

조회 수: 4 (최근 30일)
MCM
MCM 2015년 3월 16일
댓글: MCM 2015년 3월 16일
Hello, I created an interactive map using inputm and textm where user specifies quadrants on a map to exclude/include in analysis. After they click, I use textm to place a X there so that user knows where they have already clicked. I want to give users the option of changing their minds. How do I remove the X placed on the map? I tried another textm in same lat/long with empty string but it doesn't write over original marking.
Is there a way to remove the text that textm placed on a map?
Thanks

채택된 답변

Sean de Wolski
Sean de Wolski 2015년 3월 16일
grab the handle to the text object, then you can delete it
h = textm(etc)
To delete
delete(h);
  댓글 수: 1
MCM
MCM 2015년 3월 16일
Thank you! So simple and so brilliant!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Import and Export에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by