Writing S-Functions    

Building C++ S-Functions

Use the MATLAB mex command to build C++ S-functions exactly the way you use it to build C S-functions. For example, to build the C++ version of the sfun_counter example, enter

at the MATLAB command line.


  Making C++ Objects Persistent Creating Fortran S-Functions