Writing S-Functions    

Example - Time Varying Continuous Transfer Function

The stvctf S-function is an example of a time varying continuous transfer function. It demonstrates how to work with the solvers so that the simulation maintains consistency, which means that block maintains smooth and consistent signals for the integrators despite the fact that the equations that are being integrated are changing.

matlabroot/simulink/src/stvctf.c


 Example - Zero Crossing S-Function Writing S-Functions for Real-Time Workshop