Commit 0b7e5910 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Changed a condition in dynDate constructor (for yearly dates).

parent e71ccaef
......@@ -120,7 +120,7 @@ switch nargin
elseif isa(a,'dynDate') % If input argument is a dynDate object then do a copy.
date = a;
else
if isequal(length(a),1)
if isequal(length(a),1) && isnumeric(a)
% If b is not a string then yearly data are assumed.
date.freq = 1;
date.time(1) = a;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment