rectangle invisible in matlab
Ältere Kommentare anzeigen
Hi all,
I draw a rectangular in a figure by the code,
roi = drawrectangle('color','r','linewidth',2);
And now I want to set the rectangular invisible, so I code like this:
H = findobj(handles, 'type','rectangle');
set(H,'visible','off');
But this code does not work at all.
Could anyone help me to figure it out?
Thanks so much.
Akzeptierte Antwort
Weitere Antworten (1)
Yongjian Feng
am 18 Aug. 2021
Try this:
H = findobj('Type', 'images.roi.rectangle');
1 Kommentar
Alan
am 18 Aug. 2021
Kategorien
Mehr zu MATLAB Coder finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!