Scanning a CSV file
1 次查看(过去 30 天)
显示 更早的评论
I want to read a CSV(Comma Separated Values) file in a text format and bring the entire data from CSV into Matlab environment
0 个评论
回答(1 个)
Voss
2021-12-28
You could use readmatrix(), csvread(), xlsread(), textscan(), fread(), etc.
4 个评论
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
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 Exchange 中查找有关 Data Import and Export 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!