Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Host-Specific Code

Define custom block functionality with MATLAB®, C, C++, or Fortran code

S-functions (system-functions) allow you to extend the capabilities of the MATLAB environment by creating custom blocks. An S-function is a computer language description of a Simulink® block written in MATLAB, C, C++, or Fortran. C, C++, and Fortran S-functions are compiled as MEX files, dynamically linked subroutines that the MATLAB interpreter can automatically load and execute.

For information on choosing what type of S-function to use, see S-Function Types and Implementing S-Functions.

Was this topic helpful?