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 Commenti

insert a breakpoint at that line in code view and see if the size of x2 and y2 are same
they are!

Accedi per commentare.

Più risposte (1)

SC
SC il 1 Lug 2020

1 Commento

No, I do want a 2D plot. But I am unable to specify x-values.

Accedi per commentare.

Categorie

Scopri di più su Develop Apps Using App Designer in Centro assistenza e File Exchange

Prodotti

Release

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by