Reading complete CSV file with numbers and strings

조회 수: 10 (최근 30일)
Benedikt Skurk
Benedikt Skurk 2021년 3월 4일
편집: Walter Roberson 2021년 3월 11일
Hi i hope someone can help me...
I want to read the attached csv file (picture of some columns of it). But matlab always seems to "delete" the first two rows and puts the names in the first row as variable names. But i dont want that. I want to read the full file as a table.
Hope someone can help me with that! I would appreciate that, i am pretty new to matlab.
  댓글 수: 2
Walter Roberson
Walter Roberson 2021년 3월 4일
Use readcell()
Or use two read operations, one readcell() asking for the first two lines only, and the other readmatrix() asking for everything after the first two lines.
Walter Roberson
Walter Roberson 2021년 3월 11일
편집: Walter Roberson 2021년 3월 11일
I notice that commas are being used as the decimal point. What is the delimiter between entries? Also which release are you using, as ability to treat comma as decimal point is relatively new.

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

답변 (1개)

Divya Gaddipati
Divya Gaddipati 2021년 3월 11일

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by