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 件のコメント

alpedhuez
alpedhuez 2020 年 6 月 11 日
a =readtable('test.csv')
morning = a.morning
madhan ravi
madhan ravi 2020 年 6 月 11 日
Isn’t that correct?
alpedhuez
alpedhuez 2020 年 6 月 11 日
Yes this is the correct one.
madhan ravi
madhan ravi 2020 年 6 月 11 日
Post it as an answer
alpedhuez
alpedhuez 2020 年 6 月 11 日
how?
madhan ravi
madhan ravi 2020 年 6 月 11 日
Answer this question

サインインしてコメントする。

 採用された回答

Suraj Sudheer Menon
Suraj Sudheer Menon 2020 年 6 月 14 日

0 投票

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange2-D and 3-D Plots についてさらに検索

製品

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by