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
Note
The extension of the source file for a C++ S-function must be .cpp to ensure that the compiler treats the file's contents as C++ code.
|
![]() | Making C++ Objects Persistent | Creating Fortran S-Functions | ![]() |