Why can't I use app.UIAxes.CurrentPoint in MATLAB R2018b AppDesigner?

4 ビュー (過去 30 日間)
Thi Minh Anh Quang
Thi Minh Anh Quang 2020 年 10 月 29 日
回答済み: Ayush Bansal 2020 年 11 月 5 日
I am currently working with MATLAB R2018b and R2020a AppDesigner.
I need to use the property CurrentPoint of the UIAxes, not the UIFigure, to read the current mouse position when the mouse is on a Axes. Then I use the current mouse X position to read the corresponding Y value of a plotted line in the Axes. I use this command app.UIAxes.CurrentPoint.
It works perfectly in r2020a, but there is no property CurrentPoint of Axes in r2018b, although this website UIAxes Properties -> Interactivity -> CurrentPoint is introduced in R2016a.
Is there anyway to work around this problem?
Thank you very much!

採用された回答

Ayush Bansal
Ayush Bansal 2020 年 11 月 5 日
CurrentPoint property for uiaxes was introduced from R2019a. uiaxes was introced in R2016a.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by