Path: news.mathworks.com!newsfeed-00.mathworks.com!NNTP.WPI.EDU!elk.ncren.net!newsflash.concordia.ca!canopus.cc.umanitoba.ca!not-for-mail
From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Newsgroups: comp.soft-sys.matlab
Subject: Re: about textread
Date: Thu, 17 Apr 2008 04:58:40 +0000 (UTC)
Organization: National Research Council Canada - Conseil national de rechereches Canada
Lines: 17
Message-ID: <fu6le0$im3$1@canopus.cc.umanitoba.ca>
References: <fu4tt6$rjq$1@fred.mathworks.com>
NNTP-Posting-Host: origin.ibd.nrc.ca
X-Trace: canopus.cc.umanitoba.ca 1208408320 19139 192.70.172.160 (17 Apr 2008 04:58:40 GMT)
X-Complaints-To: abuse@cc.umanitoba.ca
NNTP-Posting-Date: Thu, 17 Apr 2008 04:58:40 +0000 (UTC)
Originator: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Xref: news.mathworks.com comp.soft-sys.matlab:463499



In article <fu4tt6$rjq$1@fred.mathworks.com>,
Wu Zhiyong <wuzhiyong_163@163.com> wrote:
>I have a lot of data to read into matlab.They are printed 
>in the textfile as followed:

>airpressure staions  bias      MAE     RMSE    HR          
>  200.0       44   1.82511   2.34681  2.78835  22
>airpressure staions  bias      MAE     RMSE    HR
> 300.0        38   1.55661   1.83753  2.44242  26
> &#8230;&#8230;
>I need to ignore the characters. I did it in two ways.

Do *all* the lines containing text start with 'airpressure'?
If so, then you can set the textscan() comment character to 'a'.
-- 
  "When we all think alike no one is thinking very much."
                                              -- Walter Lippmann