plotting Table doesn't work anymore?

18 ビュー (過去 30 日間)
Niklas Kurz
Niklas Kurz 2020 年 10 月 22 日
コメント済み: Peter Perkins 2020 年 11 月 19 日
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 Center および File ExchangeTables についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by