import data from csv file
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Matthieu Labaste
am 13 Jul. 2016
Kommentiert: Walter Roberson
am 15 Jul. 2016
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
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 14 Jul. 2016
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 Kommentare
Walter Roberson
am 15 Jul. 2016
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.
Weitere Antworten (1)
Azzi Abdelmalek
am 13 Jul. 2016
Bearbeitet: Azzi Abdelmalek
am 13 Jul. 2016
you can use csvread or xlsread
[ii,jj,kk]=xlsread('btl-file.csv')
0 Kommentare
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!