[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Textscan Stops for Missing Data
From: |
gciriani |
Subject: |
Textscan Stops for Missing Data |
Date: |
Wed, 23 Aug 2017 18:34:07 -0700 (MST) |
I'm reading a large tab-delimited file with a mix of text and numbers. It
seems that Textscan does a better job than other solutions, especially
because of the format %q and some text data are enclosed in quotation marks.
However, where data are missing Textscan stops. Matlab seems to be able to
keep going, but Octave stops. I tried a few of the options to no avail, and
probably I do not understand their functioning properly.
fID = fopen("C:/Users/Giovanni/Documents/exmod.tab.txt");
C = textscan (fID, "%q %q %f %q %f %q %f % f%"...
,"HeaderLines", 1 ...
,"EmptyValue", NaN ...
,"Delimiter", "\t"...
,"ReturnOnError", true...%default value not needed
);
Any suggestion is appreciated.
-----
Giovanni Ciriani
--
View this message in context:
http://octave.1599824.n4.nabble.com/Textscan-Stops-for-Missing-Data-tp4684655.html
Sent from the Octave - General mailing list archive at Nabble.com.
- Textscan Stops for Missing Data,
gciriani <=
- Re: Textscan Stops for Missing Data, Nicholas Jankowski, 2017/08/24
- Re: Textscan Stops for Missing Data, gciriani, 2017/08/24
- Re: Textscan Stops for Missing Data, siko1056, 2017/08/24
- Re: Textscan Stops for Missing Data, PhilipNienhuis, 2017/08/25
- Re: Textscan Stops for Missing Data, gciriani, 2017/08/25
- Re: Textscan Stops for Missing Data, Ozzy Lash, 2017/08/25
- Re: Textscan Stops for Missing Data, PhilipNienhuis, 2017/08/26
- Re: Textscan Stops for Missing Data, Ozzy Lash, 2017/08/26
- Re: Textscan Stops for Missing Data, Philip Nienhuis, 2017/08/27