Fixed bug (a string passed to a dseries object can be a date).

time-shift
Stéphane Adjemian (Charybdis) 2014-01-15 12:25:01 +01:00
parent 2537fb62c7
commit add3b1401f
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ switch S(1).type
end
end
case '()'
if ischar(S(1).subs{1})
if ischar(S(1).subs{1}) && ~isdate(S(1).subs{1})
% If ts is an empty dseries object, populate this object by reading data in a file.
if isempty(A)
B = dseries(S(1).subs{1});