Writing S-Functions    

Example of a Time-Varying Continuous Transfer Function

The S-function stvctf 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 the block maintains smooth and consistent signals for the integrators although the equations that are being integrated are changing.

matlabroot/simulink/src/stvctf.c


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