Path: news.mathworks.com!not-for-mail
From: "Barry Williams" <barry.r.williamsnospam@saic.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: URGENT: Read text file and save matrices
Date: Tue, 14 Oct 2008 19:16:02 +0000 (UTC)
Organization: SAIC
Lines: 26
Message-ID: <gd2r5h$hd0$1@fred.mathworks.com>
References: <gd0i5s$abm$1@fred.mathworks.com> <gd0klu$3ea$1@fred.mathworks.com> <gd1gkc$a1n$1@fred.mathworks.com> <gd2ek9$mfl$1@fred.mathworks.com>
Reply-To: "Barry Williams" <barry.r.williamsnospam@saic.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1224011762 17824 172.30.248.35 (14 Oct 2008 19:16:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 14 Oct 2008 19:16:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 804417
Xref: news.mathworks.com comp.soft-sys.matlab:495153


"Diego Zegarra" <diegozbb@gmail.com> wrote in message <gd2ek9$mfl$1@fred.mathworks.com>...
> Hey Andres the function you are telling me (txt2mat) does not exist. What should I do?
> 
> Any extra help? Could you show me how to get at least the first matrix after the first two lines?
> 
> Thank you
> 
> 
> 
> "Andres " <rantore@werb.deNoRs> wrote in message <gd1gkc$a1n$1@fred.mathworks.com>...
> > "Diego Zegarra" <diegozbb@gmail.com> wrote in message <gd0klu$3ea$1@fred.mathworks.com>...
> > > p.d. I am not asking you to code all this for me, an explanation or a guide would be really appreciated and if you have the code that would be even better. However, ANY help is good! Thank you
> > 
> > Oops, this is a doubleganger thread...
> > But as is it urgent, I'll post my suggestion again:
> > Use txt2mat from the file exchange to import all the numbers first
> > 
> > A = txt2mat('fname.txt',0);
> > 
> > and then extract all your variables from A by the help of A(1,1) and A(2,1).
> > Regards
> > Andres
Diego,
Because you indicated that you are looking for a quick response, I'll answer for Andres.  txt2mat is not a built-in MatLab function.  You need to get it from the file exchange library: http://www.mathworks.com/matlabcentral/fileexchange
Search for txt2mat
Barry