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 commentaires

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

Connectez-vous pour commenter.

 Réponse acceptée

Suraj Sudheer Menon
Suraj Sudheer Menon le 14 Juin 2020

0 votes

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

Plus de réponses (0)

Catégories

En savoir plus sur Startup and Shutdown dans Centre d'aide et File Exchange

Produits

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by