Home > matlab > ff1_.m

ff1_

PURPOSE ^

function y=ff1_(x)

SYNOPSIS ^

function y=ff1_(x)

DESCRIPTION ^

 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
        
 OUTPUTS
    y:         'static' function residuals
        
 SPECIAL REQUIREMENTS
    none

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function y=ff1_(x)
0002 
0003 % function y=ff1_(x)
0004 % splits the input argument x into endogenous and exogenous variables and calls the 'static' function
0005 %
0006 % INPUTS
0007 %    x:          argument splitted between endogenous and exogenous
0008 %
0009 % OUTPUTS
0010 %    y:         'static' function residuals
0011 %
0012 % SPECIAL REQUIREMENTS
0013 %    none
0014 
0015 % Copyright (C) 2001-2008 Dynare Team
0016 %
0017 % This file is part of Dynare.
0018 %
0019 % Dynare is free software: you can redistribute it and/or modify
0020 % it under the terms of the GNU General Public License as published by
0021 % the Free Software Foundation, either version 3 of the License, or
0022 % (at your option) any later version.
0023 %
0024 % Dynare is distributed in the hope that it will be useful,
0025 % but WITHOUT ANY WARRANTY; without even the implied warranty of
0026 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0027 % GNU General Public License for more details.
0028 %
0029 % You should have received a copy of the GNU General Public License
0030 % along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
0031 
0032 global it_ M_ oo_
0033 
0034 n1 = size(x,1) - M_.exo_nbr;
0035 oo_.exo_simul(it_+M_.maximum_lag-M_.maximum_lag,:) = x(n1+1:end)';
0036 fh = str2func([M_.fname '_static']);
0037 y=feval(fh,x(1:n1),oo_.exo_simul, M_.params);
0038 
0039 
0040

Generated on Mon 21-May-2012 02:42:43 by m2html © 2005