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?

 Akzeptierte Antwort

Cameron
Cameron am 21 Mär. 2023
Bearbeitet: Cameron am 21 Mär. 2023

0 Stimmen

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

3 Kommentare

Luis Ricardo Rivera Goitia
Luis Ricardo Rivera Goitia am 21 Mär. 2023
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 am 21 Mär. 2023
Use plot() instead of scatter().
Luis Ricardo Rivera Goitia
Luis Ricardo Rivera Goitia am 21 Mär. 2023
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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Produkte

Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by