plotting Table doesn't work anymore?

49 次查看(过去 30 天)
I alyways plotted my tables like:
T = readtable('path')
x = T(:,1)
y = T(:,2)
plot(x,y)
Why doesn't this work anymore???
it says: "Tables and timetables do not have a plot method."
But as I stated, it worked before. Something has changed?

采纳的回答

madhan ravi
madhan ravi 2020-10-22
编辑:madhan ravi 2020-10-22
x = T{:, 1}
y = T{:, 2}
  2 个评论
Niklas Kurz
Niklas Kurz 2020-10-22
I really wonder how I manage to see and live ....
Peter Perkins
Peter Perkins 2020-11-19
People do get confused over braces vs. parens, but the key is that you want to call plot with the two variables in the table, not the table itself. Perhaps more readable would be plot(T.x,T.y), if you know the var names.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Grid Lines, Tick Values, and Labels 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by