diff --git a/matlab/@dseries/dseries.m b/matlab/@dseries/dseries.m index 2c1ef6485..0257a8931 100644 --- a/matlab/@dseries/dseries.m +++ b/matlab/@dseries/dseries.m @@ -10,7 +10,7 @@ function ts = dseries(varargin) % --*-- Unitary tests --*-- %! @sp 2 %! If @code{nargin==0} then an empty dseries object is created. The object can be populated with data subsequently using the overloaded subsref method. %! @sp 2 -%! If @code{nargin==1} and if the input argument is a @ref{dynDate} object, then a dseries object without data is created. This object can be populated with the overload subsref method. +%! If @code{nargin==1} and if the input argument is a @ref{dates} object, then a dseries object without data is created. This object can be populated with the overload subsref method. %! @sp 2 %! If @code{nargin==1} and if the input argument is a string for the name of a csv, m or mat file containing data, then a dseries object is created from these data. %! @sp 2 @@ -54,7 +54,7 @@ function ts = dseries(varargin) % --*-- Unitary tests --*-- %! frequency is unspecified. @var{freq} is equal to 4 if data are on a quaterly basis. @var{freq} is equal to %! 12 if data are on a monthly basis. @var{freq} is equal to 52 if data are on a weekly basis. %! @item init -%! @ref{dynDate} object, initial date of the dataset. +%! @ref{dates} object, initial date of the dataset. %! @end table %! @end deftypefn %@eod: diff --git a/matlab/dynare_estimation_init.m b/matlab/dynare_estimation_init.m index accea228f..12bccb7b3 100644 --- a/matlab/dynare_estimation_init.m +++ b/matlab/dynare_estimation_init.m @@ -483,14 +483,14 @@ if options_.loglinear && ~options_.logdata end % Test if an initial period (different from its default value) is explicitely defined in the datafile. -if isequal(dataset.init, dynDate(1)) +if isequal(dataset.init, dates(1)) dataset_default_initial_period = 1; else dataset_default_initial_period = 0; end % Test if an initial period (different from its default value) is explicitely defined in the mod file with the set_time command. -if isequal(options_.initial_period, dynDate(1)) +if isequal(options_.initial_period, dates(1)) set_time_default_initial_period = 1; else set_time_default_initial_period = 0;