Problem with solving for steady state

Hello everyone, I am solving for steady state from external file. I see on the dynare forum that function declaration has been changed. I tried both versions, however, both versions are giving me errors. Did I miss something?

function [ys,check] = ener_steadystate(junk,ys)
global M_ options_ oo_

Error using ThreeD_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 210)
[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 ThreeD.driver (line 1325)
steady;

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

function [ys,params,check] = ener_steadystate(ys,exo,M_,options_)
global M_ options_ oo_

Error using eval
Must be a text scalar.

Error in ThreeD_steadystate (line 20)
eval([ paramname ’ = M_.params(’ int2str(i) ‘);’]);

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 210)
[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 ThreeD.driver (line 1325)
steady;

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

The second one is correct, but you also need to take the move from char arrays to cell arrays into account. See BreakingFeaturesIn4.6 · Wiki · Dynare / dynare · GitLab

Thank you very much!