importing from csv to matlab

조회 수: 2 (최근 30일)
Meh
Meh 2013년 2월 15일
Hi everybody, I am trying to import a big csv data into matlab. The file contains several rows of text and the important data starts afterwords. But what I want is to import selectively specific rows. Let me try to show my file with an example
ABC BKG CBC
CDC KKK FFF DDD
AAA 1 4 5 1999.05.02
BBB 1 2 10 1999.05.02
CCC 1 4 5 1999.05.02
AAA 1 35 1999.05.02
BBB 1 2 10 1999.05.02
CCC 1 4 5 1999.05.02
Now I want to import the rows which begin with only AAA. I have tried load('myfile') but with no success because the rows on top have different number of columns. Could you please help.
  댓글 수: 1
José-Luis
José-Luis 2013년 2월 15일
doc fread
doc fgetl
doc regexp %'split' option
doc strcmp

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

답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by