help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Textscan Stops for Missing Data


From: PhilipNienhuis
Subject: Re: Textscan Stops for Missing Data
Date: Fri, 25 Aug 2017 06:19:26 -0700 (MST)

gciriani wrote
> I have attached sample 
> exlong.tab <http://octave.1599824.n4.nabble.com/file/n4684659/exlong.tab>  
>  of about 110 lines (after the header). The code I had outlined reads
> correctly the first 30 lines; at the 31st line it reads the data up to the
> column with the missing datum (column viewtime), and it stops. 
> 
> The 
> MatLab reference <https://www.mathworks.com/help/matlab/ref/textscan.html>  
>  shows under section 
/
> Specify Delimiter and Empty Value Conversion
/
>  that it should be possible to keep going.
> 
> P.S.
> For the example I just included the format string needs to be the
> following:
> "%q %q %f %q %f %q %f %f %q %f %q %f %q %s %f %q"

Another option would have been csv2cell() in the io package. That can read
delimited data files with mixed text/numeric data.
But when I tried it turned out it couldn't read you file either, while
AFAICS it should be able to (nothing wrong with the file)
I'll look into that.

Philip



--
View this message in context: 
http://octave.1599824.n4.nabble.com/Textscan-Stops-for-Missing-Data-tp4684655p4684671.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]