From: edward kabanyas on
Hi Us,

Thanks for your reply.

> > 14:28:00 .000 000.000 01** 4847 0071 0058 +26
> > 14:29:00 R- .033 000.000 01** 4845 0090 0058 +25

However, the column number of the data is not uniform. For example, the first line is without 'R' (only white space), but the the second line with 'R-'..

Regards;
Edward

>use TEXTREAD or TEXTSCAN to slurp the whole file into a CELLSTRING...


"us " <us(a)neurol.unizh.ch> wrote in message <i218dm$m8p$1(a)fred.mathworks.com>...
> "edward kabanyas" <djuky_hmi(a)yahoo.com> wrote in message <i216rk$e2o$1(a)fred.mathworks.com>...
> > Hi friends !
> >
> > I want to read the following file (11-30-2006.dat) containing the data with the following structure:
> >
> > 14:27:00 .000 000.000 01** 4843 0065 0058 begin_of_the_skype_highlighting              0065 0058      end_of_the_skype_highlighting +26
> > 14:28:00 .000 000.000 01** 4847 0071 0058 +26
> > 14:29:00 R- .033 000.000 01** 4845 0090 0058 +25
> > 14:30:00 R- .555 000.009 01** 4845 0145 0058 +25
> > 14:31:00 R- 1.07 000.027 01** 4849 0197 0058 +25
> > 14:32:00 R- 1.08 000.045 01** 4849 0198 0058 +25
> > 14:33:00 R- .938 000.061 01** 4845 0184 0058 +25
> > 14:34:00 R- .662 000.072 01** 4849 0157 0058 +25
> > 14:35:00 R- .400 000.079 01** 4852 0126 0058 +25
> >
> > I read with as data = load('11-30-2006.dat'), but it didn't work because the uniform is not uniform.
> >
> > Do you have any better idea to read the file?
> >
> > Thanks very much for help.
> >
> > Regards;
> > Edward
>
> a hint:
> - use TEXTREAD or TEXTSCAN to slurp the whole file into a CELLSTRING...
> - use string functions, eg, STRFIND, STRCMP, REGEXP, to dissect your data...
>
> us