Commit 32e57cf9 authored by Houtan Bastani's avatar Houtan Bastani

fix typos

(cherry picked from commit 2f57168c)
parent 5ad19f2b
...@@ -22,7 +22,7 @@ function us = qdiff(ts) % --*-- Unitary tests --*-- ...@@ -22,7 +22,7 @@ function us = qdiff(ts) % --*-- Unitary tests --*--
%! @end deftypefn %! @end deftypefn
%@eod: %@eod:
% Copyright (C) 2012-2013 Dynare Team % Copyright (C) 2012-2015 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %
...@@ -43,7 +43,7 @@ us = ts; ...@@ -43,7 +43,7 @@ us = ts;
switch frequency(ts) switch frequency(ts)
case 1 case 1
error('dseries::qgrowth: I cannot compute quaterly differences from yearly data!') error('dseries::qdiff: I cannot compute quaterly differences from yearly data!')
case 4 case 4
us.data(2:end,:) = ts.data(2:end,:)-ts.data(1:end-1,:); us.data(2:end,:) = ts.data(2:end,:)-ts.data(1:end-1,:);
us.data(1,:) = NaN; us.data(1,:) = NaN;
...@@ -59,9 +59,9 @@ switch frequency(ts) ...@@ -59,9 +59,9 @@ switch frequency(ts)
us.tex(i) = {['\Delta_3 ' us.tex{i}]}; us.tex(i) = {['\Delta_3 ' us.tex{i}]};
end end
case 52 case 52
error('dseries::qgrowth: I do not know yet how to compute quaterly differences from weekly data!') error('dseries::qdiff: I do not know yet how to compute quaterly differences from weekly data!')
otherwise otherwise
error(['dseries::ygrowth: object ' inputname(1) ' has unknown frequency']); error(['dseries::qdiff: object ' inputname(1) ' has unknown frequency']);
end end
%@test:1 %@test:1
......
...@@ -22,7 +22,7 @@ function us = qgrowth(ts) % --*-- Unitary tests --*-- ...@@ -22,7 +22,7 @@ function us = qgrowth(ts) % --*-- Unitary tests --*--
%! @end deftypefn %! @end deftypefn
%@eod: %@eod:
% Copyright (C) 2012-2013 Dynare Team % Copyright (C) 2012-2015 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %
...@@ -61,7 +61,7 @@ switch frequency(ts) ...@@ -61,7 +61,7 @@ switch frequency(ts)
case 52 case 52
error('dseries::qgrowth: I do not know yet how to compute quaterly growth rates from weekly data!') error('dseries::qgrowth: I do not know yet how to compute quaterly growth rates from weekly data!')
otherwise otherwise
error(['dseries::ygrowth: object ' inputname(1) ' has unknown frequency']); error(['dseries::qgrowth: object ' inputname(1) ' has unknown frequency']);
end end
%@test:1 %@test:1
......
...@@ -22,7 +22,7 @@ function us = ydiff(ts) % --*-- Unitary tests --*-- ...@@ -22,7 +22,7 @@ function us = ydiff(ts) % --*-- Unitary tests --*--
%! @end deftypefn %! @end deftypefn
%@eod: %@eod:
% Copyright (C) 2012-2013 Dynare Team % Copyright (C) 2012-2015 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %
...@@ -71,7 +71,7 @@ switch frequency(ts) ...@@ -71,7 +71,7 @@ switch frequency(ts)
us.tex(i) = {['\Delta_{52} ' us.tex{i}]}; us.tex(i) = {['\Delta_{52} ' us.tex{i}]};
end end
otherwise otherwise
error(['dseries::ygrowth: object ' inputname(1) ' has unknown frequency']); error(['dseries::ydiff: object ' inputname(1) ' has unknown frequency']);
end end
%@test:1 %@test:1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment