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

0 votes

scatter(x(:,1),x(:,2))

3 commentaires

Thank you so much! It worked, just one more question, how can I make a line join all the plotted points.
Les Beckham
Les Beckham le 21 Mar 2023
Use plot() instead of scatter().
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)

Produits

Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by