フィルターのクリア

How to take value of X and Y from plot put it in Text Edit field using button press in Matlab App?

3 ビュー (過去 30 日間)
Hello,
I want to extract value of X and Y from plot to Text edit field like I have attached image of my plot, Now on the X Axis I want only x value 5.1159m/s into my text field while press the button and on the Y Axis I want two value 1.01864 and 51.2092 into my text edit field. So, Could anyone help me, How to write code for this?

回答 (1 件)

Harald
Harald 2023 年 8 月 29 日
Hi,
I have not tried within apps, but the getDataTips function from File Exchange may help you to extract the data from the data tips.
It is not clear to me how you decide what values should go into what edit field, but I suppose that is the easier task.
Best wishes,
Harald
  8 件のコメント
Dhaval
Dhaval 2023 年 9 月 4 日
Hi,
I have checked it and It is same name as in component browser. So, I think that is not a problem.
with regards
Dhaval
Harald
Harald 2023 年 9 月 4 日
Hi,
unfortunately, this is the only suggestion I can make from the code and error provided.
To further investigate for you, I would need a reproducible example. You would not have to share the full app, but enough to run the app and encounter the error message.
Best wishes,
Harald

サインインしてコメントする。

カテゴリ

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

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by