Moving a Marker point across Data using handles "XData"

3 ビュー (過去 30 日間)
Jason
Jason 2015 年 11 月 9 日
回答済み: Walter Roberson 2015 年 11 月 9 日
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?

採用された回答

Walter Roberson
Walter Roberson 2015 年 11 月 9 日

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by