
Re: How to add the solver's option in Simulink's sfunction
Posted:
Feb 9, 2009 2:25 AM


Actually,my equation is like:
M*dy = f(y).
Although M is nonsingular, but the inv(M) is very complicated, and when put to the right side,it turns out to be abnormal output of some of the states stay zero. So I have to use the Mass option in the odeset.
And f(y) is so complicated a nonlinear equation that I can't draw it out in Simulink using small nonlinear blocks.So I have to use the s function block.
So where to add the options in sfuntion block in Simulink? I looked up the docs of sfunction but it seems that there is no guidance there for such a case, then how can I do? Is there anyway to convert the equation to another form?
Thanks in advance!

