reading a table: column name
29 views (last 30 days)
Show older comments
alpedhuez
on 11 Jun 2020
Answered: Suraj Sudheer Menon
on 14 Jun 2020
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 Comments
Accepted Answer
Suraj Sudheer Menon
on 14 Jun 2020
A column can be read from a table by referring to the the column variable.
data=readtable('filename.csv')
morning=data.morning;
0 Comments
More Answers (0)
See Also
Categories
Find more on Logical in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!