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