% % ex4F is a matlab function that defines the eulers % at the 'steady-state' for a simplified Kydland and Prescott model % function [q] = ex4F(x,alpha,delta,beta,thetabar) % ----- define eulers ----- % r1 = 1/x(1) - beta*1/x(1)*(thetabar*alpha*x(2)^(alpha-1)+(1-delta)) ; % ----- define resource constraint ------ % r2 = thetabar*x(2)^(alpha) - x(1) + (1-delta)*x(2) - x(2); % ----- define the equations to be returned ----- % q = [r1,r2];