Delete a specific shape of marker from a plot

15 views (last 30 days)
Hello, I am plotting data using dots and then superimpose a marker of type '+' at certain locations. Is it possible to delete just the '+' markers from the GUIDE axes.
I have tried
delete( findobj(gca, 'type', 'line') );
But this deletes all the markers (including '.')
Thanks
Jason

Accepted Answer

Adam Danz
Adam Danz on 6 Jan 2020
delete(findobj(gca, 'Marker', '+'))

More Answers (0)

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!