User`s guide
1 Overview of S-Functions
1-16
mixedmex.c
Implements a hybrid dynamical system with a
single output and two inputs.
quantize.c
An example MEX-file for a vectorized quantizer
block. Quantizes the input into steps as specified by
the quantization interval parameter,
q.
resetint.c
A reset integrator.
sftable2.c
A two-dimensional t able lookup in S-function form.
sfun_dynsize.c
A simple example of how to size outputs of an
S-function dynamically.
sfun_errhndl.c
A simple example of how t o check para meters using
the
mdlCheckParams S-function routine.
sfun_fcncall.c
An example of an S-function that is configured to
execute function-call subsystems on the first and
third o utput element.
sfun_multiport.c
Anexample ofan S-functionthat hasmultipleinput
and output ports.
sfun_multirate.c
An exampleof an S-functiont hat demonstrateshow
to specify port-based sample times.
sfun_zc.c
An example of an S-function that has nonsampled
zero crossings to implement
abs(u).This
S-function is designed to be used with a variable
step solver.
sfun_zc_sat.c
Saturation example that uses zero crossings.
sfunmem.c
A one integration-step delay and hold “memory”
function.
vdpm.c
Implements the van der Pol equation.
Table 1-3: Example C MEX S-Functions (Continued)
Filename Description