Skip to content
Snippets Groups Projects
Commit bd73f401 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

fix test for dates creation when creating annual dates

parent 4c156241
Branches
Tags
1 merge request!2fix test for dates creation when creating annual dates
classdef dates<handle
% Copyright (C) 2014 Dynare Team
% Copyright (C) 2014-2015 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......@@ -88,7 +88,7 @@ classdef dates<handle
o.freq = varargin{1};
end
if isequal(o.freq, 1)
if (isnumeric(varargin{2}) && isvector(varargin{2}) && isint(varargin{2}))
if (isnumeric(varargin{2}) && isvector(varargin{2}) && all(isint(varargin{2})))
o.time = [varargin{2}, ones(length(varargin{2}),1)];
o.ndat = size(o.time,1);
return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment