How to read one column in csv file?

조회 수: 52 (최근 30일)
Asanka Dewappriya
Asanka Dewappriya 2018년 3월 4일
댓글: Walter Roberson 2018년 3월 5일
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

채택된 답변

Walter Roberson
Walter Roberson 2018년 3월 4일
The easiest way is to use csvread() to read the entire matrix and then access the first column.
  댓글 수: 6
Asanka Dewappriya
Asanka Dewappriya 2018년 3월 5일
This is file
Walter Roberson
Walter Roberson 2018년 3월 5일
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

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by