Trying to Replicate Backus, Kydland, and Kehoe '94

Hello, I am a newbie to Dynare and am trying to run these two files but am having some issues can someone help?
J_CURVE.mod (8.5 KB)
J_CURVE_steadystate.m (5.2 KB)

You did not provide the mat-file you are loading in the steady state file.

Thank you for your reply professor - I have attached the mat-file below
plot_irfs_dynare.m (2.0 KB)
steady_st_init_values.mat (231 Bytes)

But what is the problem you are facing? The attached files work in Dynare 5.
J_CURVE_steadystate.m (5.1 KB)
J_CURVE.mod (8.5 KB)
plot_irfs_dynare.m (2.0 KB)

I’ve tried running the code but am getting the following error:
Error using J_CURVE_steadystate
Too many input arguments.

Error in evaluate_steady_state_file (line 49)
[ys,params1,check] = h_steadystate(ys_init, exo_ss,M,options);

Error in evaluate_steady_state (line 254)
[ys,params,info] = evaluate_steady_state_file(ys_init,exo_ss,M, options,steadystate_check_flag);

Error in steady_ (line 55)
[steady_state,params,info] = evaluate_steady_state(oo_.steady_state,M_,options_,oo_,~options_.steadystate.nocheck);

Error in steady (line 80)
[oo_.steady_state,M_.params,info] = steady_(M_,options_,oo_);

Error in J_CURVE.driver (line 464)
steady;

Error in dynare (line 278)
evalin(‘base’,[fname ‘.driver’]);

That indicates you are still working with your old steady state file compatible with Dynare 4.5.

I am getting this error now:
Incorrect number or types of inputs or outputs for function ‘isShapeOnXY’.

Error in - (line 1013)
if ~isShapeOnXY(poly1)||~isShapeOnXY(poly2)

Error in J_CURVE_steadystate>@(x)[((1-muu)/muu)(x(1)/(1-x(2)))-x(7)(1-theta)exp(A)(x(3)/x(2))^theta;1-betta*(1-delta+x(7)thetaexp(A)(x(3)/x(2))^(theta-1));x(4)-deltax(3)-x(1);exp(A)*x(3)^(theta)x(2)^(1-theta)-x(6)-x(5);x(6)-omegax(7)^(-sigm)x(4);x(5)-(1-omega)x(7)^(-sigm)x(4);omega(x(7))^(1-sigm)+(1-omega)(x(7))^(1-sigm)-1] (line 54)
1 - betta * ( 1 - delta + x(7) * theta
exp(A) * (x(3)/x(2))^(theta-1) );

Error in fsolve (line 267)
fuser = feval(funfcn{3},x,varargin{:});

Error in J_CURVE_steadystate (line 97)
[ss,fval,exitflag] = fsolve(Eqs, x0.ss, options);

Error in evaluate_steady_state_file (line 49)
[ys,params1,check] = h_steadystate(ys_init, exo_ss,M,options);

Error in evaluate_steady_state (line 254)
[ys,params,info] = evaluate_steady_state_file(ys_init,exo_ss,M, options,steadystate_check_flag);

Error in steady_ (line 55)
[steady_state,params,info] = evaluate_steady_state(oo_.steady_state,M_,options_,oo_,~options_.steadystate.nocheck);

Error in steady (line 80)
[oo_.steady_state,M_.params,info] = steady_(M_,options_,oo_);

Error in J_CURVE.driver (line 464)
steady;

Error in dynare (line 278)
evalin(‘base’,[fname ‘.driver’]);

See