rectangle invisible in matlab
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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.
0 Commenti
Risposta accettata
Turlough Hughes
il 18 Ago 2021
The following works for me:
roi.Visible = 'off';
2 Commenti
Turlough Hughes
il 18 Ago 2021
similarly, you can use the object (already assigned to roi) with the set function as follows:
set(roi,'Visible','off')
Più risposte (1)
Vedere anche
Categorie
Scopri di più su Graphics Object Programming in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!