Page 1 of 1
m-files in mod files

Posted:
Wed Feb 03, 2010 1:26 am
by petros_varth
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.
Re: m-files in mod files

Posted:
Wed Feb 03, 2010 8:26 am
by AssiaEzzeroug
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
Re: m-files in mod files

Posted:
Thu Feb 04, 2010 12:14 am
by petros_varth
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.
Re: m-files in mod files

Posted:
Thu Feb 04, 2010 12:01 pm
by SébastienVillemot
Hi
What you can do is to create a _steadystate.m file. This is explained in many posts of this forum.
Best