% % ch5ex1.m is a matlab file that solves for % the 'steady-state' for a simplified % asset pricing % % ----- save output to file ----- % clear all diary ch5ex1.mout diary off delete ch5ex1.mout diary ch5ex1.mout format long; % ----- display date and time of computation ----- % %format long date time0 = clock; % ----- define the parameters ----- % phi = 2; beta = 0.50; dbar = 1; qbar = 1; % ----- dfine fsolve options ----- % options = optimset('Display','iter','MaxIter',5000,'MaxFunEvals',5000); % ----- solve for steady states ----- % sol1 = fsolve(@ch5ex1F,[2,90],options,phi,beta,dbar,qbar) % ----- exit ----- % comptime = etime(clock, time0) diary off