M-files in mod files

Hi everybody,

I would like to solve for the steady-state and the introduce this m-file in the mod-file.How i can do it?

Thanks.

Hi,

by “solve for the steady-state” you mean solve the steady-state by hand? If so, you can specify it in the block “initval;” just below the block model in your mod-file.

Best

No i mean creating an mfile in matlab,then i want to take this values for steady state but directly from the mfile.

Thanks for your time.

Hi

What you can do is to create a _steadystate.m file. This is explained in many posts of this forum.

Best