Path: news.mathworks.com!not-for-mail
From: "Amir " <amirschricker.DELETE@DELETE.gmail.DELETE.com>
Newsgroups: comp.soft-sys.matlab
Subject: Extract just the header from a file
Date: Wed, 9 Jul 2008 23:02:04 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 12
Message-ID: <g53g1b$8dq$1@fred.mathworks.com>
Reply-To: "Amir " <amirschricker.DELETE@DELETE.gmail.DELETE.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1215644524 8634 172.30.248.38 (9 Jul 2008 23:02:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 9 Jul 2008 23:02:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1056418
Xref: news.mathworks.com comp.soft-sys.matlab:478515



Hi. I have files that are composed of several dozen lines 
of text (the header) followed by several thousand lines of 
numbers (the data); all the files are formatted like this. 

I'd like to extract in just the header. Right now I'm 
reading in the entire file with 'importdata' (and then 
extracting what I want), but that takes a very long time 
given how much numerical data there are. Is there a more 
elegant solution?

Thanks!