Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: reading a .txt file with dates
Date: Sun, 3 Aug 2008 18:05:04 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 25
Message-ID: <g74s0g$j2h$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 1217786704 19537 172.30.248.35 (3 Aug 2008 18:05:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 3 Aug 2008 18:05:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1440827
Xref: news.mathworks.com comp.soft-sys.matlab:483374



Hi!

I've got a file in this form:
dd/mm/yy [integer]

The first lines of my file (result.txt):
30/07/08 161
31/07/08 150
01/08/08 151
05/08/08 160

And I wish to generate two vectors: x(n) with n as the n'th 
line in the file, with the dates in the form "datenum", and 
the other offcourse y(n) with the corresponding numbers.

to make it all crystall clear: 
x(1) = datenum(20/07/08) %this is wrong,but u get the idea!
y(1) = 161
...etc

If the format of the file is difficult to read, I can 
easily change it, it's matlab-genrated.

Thanks!
Aleksander, Norway