diff --git a/matlab/utilities/general/demean.m b/matlab/utilities/general/demean.m index dffd314443480bca2746462c7f4124a14a5e1cc0..c56c47367a370ad911cff2337825a3690d29c742 100644 --- a/matlab/utilities/general/demean.m +++ b/matlab/utilities/general/demean.m @@ -1,33 +1,14 @@ function c = demean(x) -% Removes the mean of each column of a matrix. -%@info: -%! @deftypefn {Function File} {@var{c} =} demean (@var{x}) -%! @anchor{demean} -%! This function removes the mean of each column of a matrix. -%! -%! @strong{Inputs} -%! @table @var -%! @item x -%! Matlab matrix (T-by-N). -%! @end table -%! -%! @strong{Outputs} -%! @table @var -%! @item c -%! Matlab matrix (T-by-N). The demeaned x matrix. -%! @end table -%! -%! @strong{This function is called by:} -%! @ref{compute_cova}, @ref{compute_acov}, @ref{compute_std}. -%! -%! @strong{This function calls:} -%! @ref{ndim}, -%! -%! @end deftypefn -%@eod: +% Removes the mean of each column of a matrix. +% +% INPUTS +% - x [double] T*N matrix of data. +% +% OUTPUTS +% - c [double] T*N matrix of demeaned data. -% Copyright (C) 2011-2017 Dynare Team +% Copyright (C) 2011-2018 Dynare Team % % This file is part of Dynare. %