Path: news.mathworks.com!not-for-mail
From: "Steven Lord" <slord@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Reading data
Date: Fri, 16 May 2008 17:05:40 -0400
Organization: The MathWorks, Inc.
Lines: 36
Message-ID: <g0ksv4$poq$1@fred.mathworks.com>
References: <g0kgia$nlu$1@fred.mathworks.com> <g0kkuu$47v$1@fred.mathworks.com> <g0kmqt$k8t$1@fred.mathworks.com> <g0koud$ikl$1@fred.mathworks.com>
Reply-To: "Steven Lord" <slord@mathworks.com>
NNTP-Posting-Host: lords.dhcp.mathworks.com
X-Trace: fred.mathworks.com 1210971940 26394 144.212.105.187 (16 May 2008 21:05:40 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 16 May 2008 21:05:40 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
Xref: news.mathworks.com comp.soft-sys.matlab:468942




"Hosein " <Kalaeimh@yahoo.com> wrote in message 
news:g0koud$ikl$1@fred.mathworks.com...
> "Hosein " <Kalaeimh@yahoo.com> wrote in message
> <g0kmqt$k8t$1@fred.mathworks.com>...
>> "Andres Toennesmann" <rantore@werb.de> wrote in message
>> <g0kkuu$47v$1@fred.mathworks.com>...
>> > "Hosein " <Kalaeimh@yahoo.com> wrote in message
>> > <g0kgia$nlu$1@fred.mathworks.com>...

*snip*

>> > A = txt2mat('C:\myfile.txt',0,-3,'BadLineString',{'*','C'});
>> >
>> > is a possible one-liner solution. txt2mat can be found on
>> > the file exchange (see its help for details).
>> >
>> > Hth,
>> > regards
>> > Andres
>>
>> I is not working. There is something wrong with the command
>
> would you please 'somebody' help me? I am waiting.
> somebody, anybody....

Note that Andres indicated that txt2mat is on the file exchange 
(http://www.mathworks.com/matlabcentral) -- it is not part of MATLAB itself, 
but a user-contributed file.  You will need to download it to a work 
directory before using it.  This is likely the reason it is "not working".

-- 
Steve Lord
slord@mathworks.com