Fixed bug (a string passed to a dseries object can be a date).
parent
2537fb62c7
commit
add3b1401f
|
@ -175,7 +175,7 @@ switch S(1).type
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
case '()'
|
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 ts is an empty dseries object, populate this object by reading data in a file.
|
||||||
if isempty(A)
|
if isempty(A)
|
||||||
B = dseries(S(1).subs{1});
|
B = dseries(S(1).subs{1});
|
||||||
|
|
Loading…
Reference in New Issue