본문으로 바로가기

Tag 항목에 뭔가 특이한걸 써놓고 Tag를 찾아 그 핸들을 delete한다.


% create the annotation

annotationPos = [0.55 0.58 0.6 0.3];

ht_tb = annotation('textbox', [0.5 0.5 0.5 0.5], 'String', {'Delete This'}, 'Tag' , 'UpdateString');


% delete the annotation

delete(findall(gcf,'Tag','somethingUnique'))

ht_tb = annotation('textbox', [0.5 0.5 0.5 0.5], 'String', {'Update'}, 'Tag' , 'UpdateString');



'Language > Matlab, Octave, Julia, Go' 카테고리의 다른 글

스크립트 실행 중 변수명 만들기  (0) 2018.01.31
Group Delay  (0) 2018.01.30
Normalized frequency (unit) in Matlab  (0) 2018.01.30