필터 지우기
필터 지우기

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 CenterFile Exchange에서 Text Files에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by