reading a table: column name

24 次查看(过去 30 天)
I created a csv file
morning afternoon
1 0
0 2
I read it using readtable
and then type
morning
then I got
unrecognized function or variable
Please advise.
  6 个评论

请先登录,再进行评论。

采纳的回答

Suraj Sudheer Menon
A column can be read from a table by referring to the the column variable.
data=readtable('filename.csv')
morning=data.morning;

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by