Moving a Marker point across Data using handles "XData"
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Jason
le 9 Nov 2015
Réponse apportée : Walter Roberson
le 9 Nov 2015
I want to translate a cyan circle across a set of peaks on an axes.

I therefore plot assigning the plot to a handle h2. I originally start at the first location
h2=plot(xxx(1),yyy(1),'co')
In a button callback I want to then increment the cyan circle across each peak. I have the locations of the peaks in a vector xxx. It has kindly been suggested to use the handles Xdata of the specific object I want to move, namely the cyan circle.
So I want to use
h2.XData= xxx(i)
where I increment i.
My problem is how do i pass the h2 plot handle (of the cyan circles) to the button callback?
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Annotations dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!