import data from csv file

조회 수: 8 (최근 30일)
Matthieu Labaste
Matthieu Labaste 2016년 7월 13일
댓글: Walter Roberson 2016년 7월 15일
hi,
i would to import data from a file like attached . I have lot file and i would like extrat some parameter in order to plot variation between eatch cast
thanks

채택된 답변

Walter Roberson
Walter Roberson 2016년 7월 14일
That file is not in csv format. It is also space delimited and uses two lines for each entry because the time has been folded down into the next line. There are fewer headers than there are columns because 'Sbeox0ML/LSbeox0Mm/Kg' is over two columns. You cannot use '/' to mark the end of column headings because you also have headers such as 'C1S/m'. The headers also require two lines.... Oh and I just noticed it isn't just the time that appears on the second line :(
I am working on code to import it.
  댓글 수: 3
Matthieu Labaste
Matthieu Labaste 2016년 7월 15일
of course it's not a csv format ... it's .btl fil from seabird processing! and the format is really strange ....
Walter Roberson
Walter Roberson 2016년 7월 15일
The title of this Question asks about importing from csv files, and the file extension is .csv so everyone reading this question is going to assume that the file really is a Comma Separated Value file, but it isn't.

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

추가 답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2016년 7월 13일
편집: Azzi Abdelmalek 2016년 7월 13일
you can use csvread or xlsread
[ii,jj,kk]=xlsread('btl-file.csv')

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by