Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: How to add the solver's option in Simulink's s-function
Replies: 10   Last Post: Oct 1, 2015 4:32 AM

 Messages: [ Previous | Next ]
 christophe.lauwerys@gmail.com Posts: 22 Registered: 3/24/06
Re: How to add the solver's option in Simulink's s-function
Posted: Jan 1, 2013 4:53 AM

There is a solution but it is undocumented.

In MdlMassMatrixFcn you can set a mass matrix using ssSetMassMatrix.

Unfortunately looking for those keywords in Google only results in finding my unanswered questions regarding this topic.

Christophe

workaholic <liuauto@gmail.com> wrote in message <fb81fbd9-09ed-4038-bf87-30f0f3d383ef@d2g2000pra.googlegroups.com>...
> On 3=D4=C24=C8=D5, =C9=CF=CE=E74=CA=B153=B7=D6, "CSB" <cbrund...@hotmail.co=
> m> wrote:

> > workaholic <liua...@gmail.com> wrote in message <d980f636-ee56-4f99-817a-=
> > > On 2=3DD4=3DC224=3DC8=3DD5, =3DCF=3DC2=3DCE=3DE79=3DCA=3DB111=3DB7=3DD6=
> , "CSB" <cbrund...@hotmail.c=3D
> > > om> wrote:
> > > > Did you ever solve this issue?
> >
> > > > I'm also interested in being able to set the ode options in a simulin=
> k mo=3D
> > > del.
> >
> > > I don't know whether it works, I multiply the mass matrix in the s-
> > > function 's derivative function output, since I guess the s-functionn
> > > may use the derivate step by step to solve the ode equation, until now
> > > I have not found any way to add the ode option yet

> >
> > Thanks. I've confirmed with MATLAB support that those ODE options are no=

> t available in Simulink. Apparently, they are completely different impleme=
> ntations from the ODE solvers in MATLAB.
>
> Then what is your solution?

Date Subject Author
2/6/09 workaholic
2/7/09 workaholic
2/9/09 workaholic
2/9/09 workaholic
2/11/09 workaholic
2/24/09 CSB
3/2/09 workaholic
3/3/09 CSB
3/5/09 workaholic
1/1/13 christophe.lauwerys@gmail.com
10/1/15 Marius Häffner