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 Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by