How to read one column in csv file?

50 visualizaciones (últimos 30 días)
Asanka Dewappriya
Asanka Dewappriya el 4 de Mzo. de 2018
Comentada: Walter Roberson el 5 de Mzo. de 2018
In my .csv file have four columns I need to access each 1st column. Is there any matlab code doing easy that kind of task. file data mention in below

Respuesta aceptada

Walter Roberson
Walter Roberson el 4 de Mzo. de 2018
The easiest way is to use csvread() to read the entire matrix and then access the first column.
  6 comentarios
Asanka Dewappriya
Asanka Dewappriya el 5 de Mzo. de 2018
This is file
Walter Roberson
Walter Roberson el 5 de Mzo. de 2018
I do not get that result at all.
data = csvread('DOWN.csv');
data(1:10,1)
ans =
1.15
1.196
1.201
1.172
1.138
1.16
1.194
1.213
1.199
1.189

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by