2005-02-18 20:54:39 +01:00
|
|
|
function y=ff1_(x)
|
2008-01-29 14:34:02 +01:00
|
|
|
|
|
|
|
% function y=ff1_(x)
|
|
|
|
% splits the input argument x into endogenous and exogenous variables and calls the 'static' function
|
|
|
|
%
|
|
|
|
% INPUTS
|
|
|
|
% x: argument splitted between endogenous and exogenous
|
2017-05-16 15:10:20 +02:00
|
|
|
%
|
2008-01-29 14:34:02 +01:00
|
|
|
% OUTPUTS
|
|
|
|
% y: 'static' function residuals
|
2017-05-16 15:10:20 +02:00
|
|
|
%
|
2008-01-29 14:34:02 +01:00
|
|
|
% SPECIAL REQUIREMENTS
|
|
|
|
% none
|
2008-08-01 14:40:33 +02:00
|
|
|
|
2017-05-18 18:36:38 +02:00
|
|
|
% Copyright (C) 2001-2017 Dynare Team
|
2008-08-01 14:40:33 +02:00
|
|
|
%
|
|
|
|
% This file is part of Dynare.
|
|
|
|
%
|
|
|
|
% Dynare is free software: you can redistribute it and/or modify
|
|
|
|
% it under the terms of the GNU General Public License as published by
|
|
|
|
% the Free Software Foundation, either version 3 of the License, or
|
|
|
|
% (at your option) any later version.
|
|
|
|
%
|
|
|
|
% Dynare is distributed in the hope that it will be useful,
|
|
|
|
% but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
% GNU General Public License for more details.
|
|
|
|
%
|
|
|
|
% You should have received a copy of the GNU General Public License
|
|
|
|
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
|
2008-01-29 14:34:02 +01:00
|
|
|
|
2005-02-18 20:54:39 +01:00
|
|
|
global it_ M_ oo_
|
|
|
|
|
|
|
|
n1 = size(x,1) - M_.exo_nbr;
|
|
|
|
oo_.exo_simul(it_+M_.maximum_lag-M_.maximum_lag,:) = x(n1+1:end)';
|
2018-06-27 17:02:13 +02:00
|
|
|
fh = str2func([M_.fname '.static']);
|
2008-06-06 16:01:02 +02:00
|
|
|
y=feval(fh,x(1:n1),oo_.exo_simul, M_.params);
|