Path: news.mathworks.com!newsfeed-00.mathworks.com!kanaga.switch.ch!switch.ch!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.straub-nv.de!feeder.eternal-september.org!eternal-september.org!not-for-mail
From: dpb <none@non.net>
Newsgroups: comp.soft-sys.matlab
Subject: Re: quick question about 'textscan'
Date: Mon, 14 Sep 2009 12:30:33 -0500
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <h8lurt$k9m$1@news.eternal-september.org>
References: <h8ltmq$7hq$1@fred.mathworks.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.eternal-september.org U2FsdGVkX1+SpW89UZMMhQfJfDSHgvFj90dAZWgK5gaYWlO1WgtAIHdj+ZOL36h0m5lUyV87o1V5aXru08WvLrxtWPPlNMxRUk0jbMBER9nzYu8uyB6IbruTvR5qgpNBA7LXUS4GxrU=
X-Complaints-To: abuse@eternal-september.org
NNTP-Posting-Date: Mon, 14 Sep 2009 17:34:53 +0000 (UTC)
In-Reply-To: <h8ltmq$7hq$1@fred.mathworks.com>
X-Auth-Sender: U2FsdGVkX1+DjcRHfwGR2vVEskVLYPNC
Cancel-Lock: sha1:8IdEPfzgF/vy4Ab5ldqta8l1Q/M=
User-Agent: Thunderbird 2.0.0.22 (Windows/20090605)
Xref: news.mathworks.com comp.soft-sys.matlab:570320


Apurva Dave wrote:
> Hi,
> 
> I'm using textscan to read some tab-delimited data. I want to
> ignore the metadata as well as some comments. I'm using the following
> syntax,but I'm getting an 'unknown option' error when I try to use 'commentstyle':
> 
> fid = fopen('P980413A.DAT');
> 
> textfile = textscan(fid, '%f', 28, 'delimiter','	', ...
> 	'commentstyle', {'/begin_header /end_header@'}, ...
> 	'commentstyle', '/begin_data', ...
> 	'commentstyle', '/end_data@');
...

textscan() postdates my version and don't have time to look at web doc 
right now, but does it indicate can have multiple 'commentstyle' entries 
as allowable syntax?  That's unusual at least w/ any ML function I'm 
aware of....

--