% % ex5 is a matlab file that solves for % the 'steady-state' for a simplified Kydland and Prescott model % using the ex5F.m file % % ----- save output to file ----- % clear all diary ex5.mout diary off delete ex5.mout diary ex5.mout % ----- display date and time of computation ----- % %format long date time0 = clock; % ----- define the parameters ----- % gamma = 1.0; alpha = 2/3; psi = .70/.30; sigma = 1.0; delta = 0.10; beta = 0.99; thetabar = 1.0; % ----- dfine fsolve options ----- % options = optimset('Display','iter','MaxIter',5000,'MaxFunEvals',5000); % ----- solve for steady states ----- % sol1 = fsolve(@ex5F,[1 0.33 1.5],options,gamma,alpha,psi,sigma,delta,beta,thetabar) % ----- exit ----- % comptime = etime(clock, time0) diary off