% % ch5ex1F is a matlab function that defines the eulers % at the 'steady-state' % function [q] = ch5ex1F(x,phi,beta,dbar,qbar) % ----- define eulers ----- % ee1 = x(1)^(-phi)*x(2)-beta*x(1)^(-phi)*( dbar + x(2) ); % ----- define resorce constraint ------ % ee2 = dbar + qbar - x(1) ; % ----- define the equations to be returned ----- % q = [ee1,ee2];