Skip to content
Snippets Groups Projects
Verified Commit 5842e7be authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Fixed logic...

First argument, specifying the frequency, can be an integer *or* a character.
parent 5d8236a9
Branches
No related tags found
No related merge requests found
......@@ -112,7 +112,7 @@ methods
end
return
end
if isequal(nargin,4) && isfreq(varargin{1}) && isequal(varargin{1},365)
if isequal(nargin,4) && isfreq(varargin{1}) && ( isequal(varargin{1},365) || strcmpi(varargin{1},'D'))
o.time = NaN(0,2);
if ischar(varargin{1})
o.freq = string2freq(varargin{1});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment