Plotting in MatLab App Builder - no x values?

3 visualizzazioni (ultimi 30 giorni)
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
Sugar Daddy
Sugar Daddy il 1 Lug 2020
insert a breakpoint at that line in code view and see if the size of x2 and y2 are same

Accedi per commentare.

Risposta accettata

Sugar Daddy
Sugar Daddy il 2 Lug 2020
Select the 2nd Option

Più risposte (1)

SC
SC il 1 Lug 2020
  1 Commento
Noor Fakih
Noor Fakih il 1 Lug 2020
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 Help Center 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