- #1
Nusc
- 760
- 2
Hi. Suppose I load data from a .csv file:
Blah
@Blah
2Blah
Blah
f Blah
fa Blah
Blahasd
Blahasda
vasf Blah
as Blah
asdas Blah
Date Time Ch1:
07/25/2012 42:46.0 96.385
07/25/2012 42:46.0 -177.608
07/25/2012 42:46.0 155.481
07/25/2012 42:46.0 64.15
an attempt would be to manipulate the data first before I read it, things would be much more subtle:
fid = fopen('PULL1.CSV');
data = textscan(fid, '%s' ,'delimiter', '\b');
data2 = data{:,:}
data3 = data2(13:end,:);
fclose(fid);
-----
The output then is:
'07/25/2012,17:49:56.080,37.288'
'07/25/2012,17:49:56.085,37.288'
'07/25/2012,17:49:56.090,53.405'Would I still have to run textscan to recognize the entries separated by the commas?
How would I be able to plot time vs. the third column?
Blah
@Blah
2Blah
Blah
f Blah
fa Blah
Blahasd
Blahasda
vasf Blah
as Blah
asdas Blah
Date Time Ch1:
07/25/2012 42:46.0 96.385
07/25/2012 42:46.0 -177.608
07/25/2012 42:46.0 155.481
07/25/2012 42:46.0 64.15
an attempt would be to manipulate the data first before I read it, things would be much more subtle:
fid = fopen('PULL1.CSV');
data = textscan(fid, '%s' ,'delimiter', '\b');
data2 = data{:,:}
data3 = data2(13:end,:);
fclose(fid);
-----
The output then is:
'07/25/2012,17:49:56.080,37.288'
'07/25/2012,17:49:56.085,37.288'
'07/25/2012,17:49:56.090,53.405'Would I still have to run textscan to recognize the entries separated by the commas?
How would I be able to plot time vs. the third column?