Path: news.mathworks.com!not-for-mail
From: "omar " <ouzizo@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: reading from a text file
Date: Mon, 18 May 2009 16:10:03 +0000 (UTC)
Organization: German University in Cairo
Lines: 41
Message-ID: <gus18r$k82$1@fred.mathworks.com>
References: <gurtb5$h3$1@fred.mathworks.com> <guru1n$gsh$1@fred.mathworks.com> <gurv5a$op$1@fred.mathworks.com> <gurvq0$dai$1@fred.mathworks.com>
Reply-To: "omar " <ouzizo@gmail.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 1242663003 20738 172.30.248.35 (18 May 2009 16:10:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 18 May 2009 16:10:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1798684
Xref: news.mathworks.com comp.soft-sys.matlab:540765


"us " <us@neurol.unizh.ch> wrote in message <gurvq0$dai$1@fred.mathworks.com>...
> "omar " <ouzizo@gmail.com> wrote in message <gurv5a$op$1@fred.mathworks.com>...
> > man i tried what u wrote me but it resulted in a matrix "s" which contains nothing.
> 
> well, MAN, note what i sait:
> 
> one of the solutions
> - given the file's anatomy as shown above <----- !!!!!
> 
> i copied/pasted your example EXACTLY into a file foo.txt - and got the correct result as shown...
> the file foo.txt looks like this:
> 
> version: 1
> n_points: 20
> {
> 154.05 102.829
> 223.237 102.829
> 156.589 175.824
> 219.429 173.285
> 129.295 90.7684
> 177.536 92.0379
> 199.752 94.5768
> 247.992 91.4031
> 125.487 107.272
> 138.816 105.367
> 169.284 103.463
> 209.908 103.463
> 237.202 106.002
> 253.07 107.906
> 188.326 132.661
> 177.536 140.913
> 199.752 141.548
> 187.692 171.381
> 187.057 190.423
> 186.422 224.065
> }
> 
> now, if this is NOT the content of your file - then you are wasting CSSMers time...
> us

thanks man it worked perfectly