Scanning a CSV file

1 回表示 (過去 30 日間)
Aditya
Aditya 2011 年 11 月 13 日
コメント済み: Voss 2021 年 12 月 28 日
I want to read a CSV(Comma Separated Values) file in a text format and bring the entire data from CSV into Matlab environment

回答 (1 件)

Voss
Voss 2021 年 12 月 28 日
You could use readmatrix(), csvread(), xlsread(), textscan(), fread(), etc.
  4 件のコメント
Walter Roberson
Walter Roberson 2021 年 12 月 28 日
The expectation is that replies will typically be appropriate to the version available to the poster, or else will be marked as requiring a newer version.
For example, "You could use csvread(), xlsread(), textscan(), fread(), etc. In new enough versions you could use readmatrix()"
Voss
Voss 2021 年 12 月 28 日
I have no expectation that the poster will read the answer at all in this case.
I only listed readmatrix() first because it seems to be the latest preferred method; I've never had reason to use it myself.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeData Import and Export についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by