Moving a Marker point across Data using handles "XData"
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Jason
el 9 de Nov. de 2015
Respondida: Walter Roberson
el 9 de Nov. de 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 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Annotations en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!