Plotting Column X vs Column Y?

14 vues (au cours des 30 derniers jours)
Luis Ricardo Rivera Goitia
Having this table, how can I obtain a graph that shows on x-axis the first column values and on y-axis the second column values?

Réponse acceptée

Cameron
Cameron le 21 Mar 2023
Modifié(e) : Cameron le 21 Mar 2023
scatter(x(:,1),x(:,2))
  3 commentaires
Les Beckham
Les Beckham le 21 Mar 2023
Use plot() instead of scatter().
Luis Ricardo Rivera Goitia
I used plot before using scatter, and didn't work as scatter writing down the values of time in the x-axis. But I'll try, thx.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Discrete Data Plots dans Help Center et File Exchange

Produits


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by