Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: reading from a text file
Date: Mon, 18 May 2009 15:45:04 +0000 (UTC)
Organization: Universit&#228;tsSpital Z&#252;rich
Lines: 38
Message-ID: <gurvq0$dai$1@fred.mathworks.com>
References: <gurtb5$h3$1@fred.mathworks.com> <guru1n$gsh$1@fred.mathworks.com> <gurv5a$op$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1242661504 13650 172.30.248.35 (18 May 2009 15:45:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 18 May 2009 15:45:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 11
Xref: news.mathworks.com comp.soft-sys.matlab:540759


"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