Plotting in MatLab App Builder - no x values?

I am building an app in MatLab and have a UItable and a UIAxes. I finally got it to connect and plot what is on the table and update when the values in the table change, but ONLY Y values.
How can I plot my x and y values???
plot(app.UIAxes,y2); <- this is the piece of code that plots it
plot(app.UIAxes,x2, y2); does not work

2 件のコメント

Sugar Daddy
Sugar Daddy 2020 年 7 月 1 日
insert a breakpoint at that line in code view and see if the size of x2 and y2 are same
Noor Fakih
Noor Fakih 2020 年 7 月 1 日
they are!

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

 採用された回答

Sugar Daddy
Sugar Daddy 2020 年 7 月 2 日

0 投票

Select the 2nd Option

その他の回答 (1 件)

SC
SC 2020 年 7 月 1 日

0 投票

1 件のコメント

Noor Fakih
Noor Fakih 2020 年 7 月 1 日
No, I do want a 2D plot. But I am unable to specify x-values.

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

カテゴリ

ヘルプ センター および File ExchangeDevelop Apps Using App Designer についてさらに検索

製品

リリース

R2019a

質問済み:

2020 年 7 月 1 日

回答済み:

2020 年 7 月 2 日

Community Treasure Hunt

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

Start Hunting!

Translated by