help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: datenum


From: Laurent Mazet
Subject: Re: datenum
Date: Fri, 10 Dec 2004 17:02:17 +0100

On Fri, 10 Dec 2004 05:35:22 -0600
"Carine Simon" <address@hidden> wrote:
> Hi,
> 
> I am using the function datenum written by Paul Kienzle (Copyright 2000)
> but I've got some trouble with it.
> Indeed, when I type datenum(2000,1,1), I get 730485 whereas with Matlab,
> I get 730486.
...

This problem has been solved in recent version of Octave-forge

$ octave
GNU Octave, version 2.1.60 (i686-mandrake-linux-gnu).
...
octave:1> datenum(2000,1,1)
ans = 730486
octave:2> da=clock
da =

  2004.0000    12.0000    10.0000    17.0000     1.0000    17.9528

octave:3> DayOfYear=datenum(0,da(2),da(3))
DayOfYear = 345


-- 
Dr. Laurent Mazet: Research Engineer /V\ Centre de Recherche de MOTOROLA
Tel: +33 (0)1 69 35 48 30 =-=-=-=-=-=-=-=-=-=-= Email: address@hidden



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]