reading a table: column name
29 次查看(过去 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.
采纳的回答
Suraj Sudheer Menon
2020-6-14
A column can be read from a table by referring to the the column variable.
data=readtable('filename.csv')
morning=data.morning;
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!