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

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 Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

태그

Community Treasure Hunt

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

Start Hunting!

Translated by