Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: "reading data from text file"
Date: Fri, 16 May 2008 17:34:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 19
Message-ID: <g0kgia$nlu$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1210959242 24254 172.30.248.37 (16 May 2008 17:34:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 16 May 2008 17:34:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 498815
Xref: news.mathworks.com comp.soft-sys.matlab:468909



I have a text file as follows:

CC
CC
*----
    2 3
34 6
CC
*---
2.2 3.3 4.4

how can I read just numbers? or how can I ask matlab to
ignore all lines started by 'CC' and read data after lines
started by '*'? (Also, what about spaces?)
I want to read each line individually.
if anybody can write some lines of a code to read even above
example, I will appreciate.
(I already read the example regarding to 'textread' and
'textscan'. but I did not find anything clear.)