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

Added missing condition.

parent 48fc9a82
Branches
No related tags found
No related merge requests found
......@@ -44,6 +44,11 @@ if isequal(nargin, 2)
if ~isnumeric(varargin{1}) || ~isrow(varargin{1}) || ~all(isint(varargin{1}(~isnan(varargin{1})))) || ~isequal(length(varargin{1}), 2)
error('First input must be a 1*2 array of integers.')
end
if ~isequal(varargin{2}, 365)
if any(varargin{1}(:,2)<1) || any(varargin{1}(:,2)>varargin{2})
error('Second input has elements non admissible as dates.')
end
end
time = varargin{1};
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment