Matlab/Simulink S-Function with vector input & output

The following S-function example demonstrates how to create an S-Function with vector input and output in Matlab/Simulink.

In general, while writing vector I/O S-functions, remember that:

square_vector.cpp

Makefile

Step-by-step guide of how to add the S-function

Example usage:

Simulink Square Vector


Check out similar posts by category: Matlab/Simulink