From: Ben Spivey on
I have the same question. It is hard to believe that this functionality has not been explained anywhere I've searched. I suppose Simulink did not provide a feature to use DAE unless you use blocks? Any advice from Matlab/Simulink developers?

Ben

"Christophe Lauwerys" <christophe.lauwerys(a)gmail.com> wrote in message <h68nnu$qbf$1(a)fred.mathworks.com>...
> How to specify a (state dependent) mass matrix in a Simulink M-file/C-file S-function?
>
> The following functions are described in simstruc.h
>
> mdlMassMatrixFcn
> ssGetMassMatrix
> ssSetMassMatrix
>
> but for some reason this feature seems to be completely undocumented.
>
> Any information on this would be helpfull.
>
> Thanks
>
> Christophe