reading a table: column name

조회 수: 27 (최근 30일)
alpedhuez
alpedhuez 2020년 6월 11일
답변: Suraj Sudheer Menon 2020년 6월 14일
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일
how?
madhan ravi
madhan ravi 2020년 6월 11일
Answer this question

댓글을 달려면 로그인하십시오.

채택된 답변

Suraj Sudheer Menon
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개)

카테고리

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