how do i check if line in plot exists and if yes delete it otherwise nothing
Mostra commenti meno recenti
I have GUI with some plots. and in the plot there migt be lines in it. and when i pres certain button i want to check if there are some lines in plot and if so delete them. if there arent any do nothing... Thanks for help!
Risposta accettata
Più risposte (1)
Sonima
il 24 Gen 2019
Hi!
I want to do the same, delete a line if exist in a plot in a fuction.
I used the suggeste code
if ishandle(line_handle)
delete(line_handle)
end
But I got the error:
Undefined function or variable 'line_handle'.
How can I fix it?!
Categorie
Scopri di più su Annotations in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!