See the discussion at [Steady state file).
For a working example, see my post at [External MATLAB function in Dynare)