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?

 Risposta accettata

Cameron
Cameron il 21 Mar 2023
Modificato: Cameron il 21 Mar 2023
scatter(x(:,1),x(:,2))

3 Commenti

Thank you so much! It worked, just one more question, how can I make a line join all the plotted points.
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.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su 2-D and 3-D Plots in Centro assistenza e File Exchange

Prodotti

Release

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by