Getting Y value for plot having 3 curves in single plot. using App designer dropdown component selecting one curve to read Y data for X data? using GUI

2 ビュー (過去 30 日間)
Hi, I am working in begginer level for creating app.
In my Problem.
I have X & Y data for three curves in plot.
Now i have to select one curve at a time and give input to Edit field (X axis Point - P10, P15, Pinfinity) to get Y value for that _ Attached
Also Attached My code : Please guide where i am wrong to get Y axis value for Selected Curve.
  2 件のコメント
naveen kumar s
naveen kumar s 2021 年 8 月 27 日
I have Attached mlapp file.
I need to find my Y axes Value for particular curve (P10, P15, P20) by giving x point on that curve.
Thanks for helping me.
naveen kumar s
naveen kumar s 2021 年 8 月 30 日
is there any method to do this.Even without GUI method

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

採用された回答

Cris LaPierre
Cris LaPierre 2021 年 8 月 31 日
編集済み: Cris LaPierre 2021 年 9 月 1 日
Use App Properties to share your data within an app. That way, you don't have to keep loading the same variables. Consider loading your mat files in the statup function.
Now just pay attention to the error messages.
Unrecognized method, property, or field 'InputXAsistocalculateYAxisEditField_2' for class
'selecting_Checking_at_point'.
Did you mean:
K>> app.InputXAsistocalculateYAxisEditField.Value
When I switch the drop down menu to P15 or P20, I get this error. Compare the code for these cases with the code for P10. What is different? P10 works. These don't.
Unrecognized method, property, or field 'property' for class 'matlab.ui.control.DropDown'.
Error in selecting_Checking_at_point/InputXAsistocalculateYAxisEditFieldValueChanged (line 66)
elseif (strcmp(app.SelectForCurveDropDown.property,'P15'))
Error using matlab.ui.control.internal.controller.ComponentController/executeUserCallback (line 453)
Error while evaluating NumericEditField PrivateValueChangedFcn.
As for why the values are not appearing in the Y Axis edit field, consider consulting the properties of an edit field. You should set a value using code very similar to what is used to read a value. Again, pay attention to names as well.
Unrecognized method, property, or field 'YAxisEditField_2' for class 'selecting_Checking_at_point'.
  4 件のコメント
naveen kumar s
naveen kumar s 2021 年 9 月 2 日
No can't create variables. I have only data extracted from graph.
But any idea which code,
plotting all curves with less steps from mat file.
Cris LaPierre
Cris LaPierre 2021 年 9 月 2 日
Just the same suggestions I have shared already

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSpecifying Target for Graphics Output についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by