Skip to content
Snippets Groups Projects
Commit 1feb0a43 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

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

(cherry picked from commit add3b140)
parent 7438dae0
No related branches found
No related tags found
No related merge requests found
......@@ -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});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment