[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
string input of datenum is disabled
From: |
Alexander Barth |
Subject: |
string input of datenum is disabled |
Date: |
Fri, 25 Aug 2006 16:53:02 -0400 |
User-agent: |
Thunderbird 1.5.0.2 (X11/20060501) |
Hi all,
If datenum is called with a string argument, I get the error "string form of
dates not yet
supported". The code in datenum handling string arguments (datevec) is
commented out. When datevec
is enabled, datenum worked as expected (I tested the examples provided in the
matlab's documentation.)
Attached is the patch to enable it.
Thanks
Alex
--
_______________________________________________________________
Alexander Barth
Ocean Circulation Group
University of South Florida
College of Marine Science
140 Seventh Avenue South
St. Petersburg, Florida 33701
USA
Phone: +1-727-553-3508 FAX: +1-727-553-1189
_______________________________________________________________
*** datenum.m.orig 2006-08-25 16:34:08.000000000 -0400
--- datenum.m 2006-08-25 16:34:33.000000000 -0400
***************
*** 73,80 ****
if (nargin < 2)
M = [];
endif
! error ("string form of dates not yet supported");
! ## [Y, M, D, h, m, s] = datevec (Y, M);
else
if (nargin < 6) s = 0; endif
if (nargin < 5) m = 0; endif
--- 73,80 ----
if (nargin < 2)
M = [];
endif
!
! [Y, M, D, h, m, s] = datevec (Y, M);
else
if (nargin < 6) s = 0; endif
if (nargin < 5) m = 0; endif
- string input of datenum is disabled,
Alexander Barth <=