Plotting Column X vs Column Y?

9 次查看(过去 30 天)
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?

采纳的回答

Cameron
Cameron 2023-3-21
编辑:Cameron 2023-3-21
scatter(x(:,1),x(:,2))
  3 个评论
Les Beckham
Les Beckham 2023-3-21
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.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by