Plotting Column X vs Column Y?

14 views (last 30 days)
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?

Accepted Answer

Cameron
Cameron on 21 Mar 2023
Edited: Cameron on 21 Mar 2023
scatter(x(:,1),x(:,2))
  3 Comments
Les Beckham
Les Beckham on 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.

Sign in to comment.

More Answers (0)

Categories

Find more on Discrete Data Plots in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!