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.
workaholic <email@example.com> wrote in message <firstname.lastname@example.org>... > 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-= > 20c94395a...@s9g2000prg.googlegroups.com>... > > > 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?