reading a table: column name

28 visualizzazioni (ultimi 30 giorni)
alpedhuez
alpedhuez il 11 Giu 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 Commenti
alpedhuez
alpedhuez il 11 Giu 2020
how?
madhan ravi
madhan ravi il 11 Giu 2020
Answer this question

Accedi per commentare.

Risposta accettata

Suraj Sudheer Menon
Suraj Sudheer Menon il 14 Giu 2020
A column can be read from a table by referring to the the column variable.
data=readtable('filename.csv')
morning=data.morning;

Più risposte (0)

Tag

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by