Main Content

Die Übersetzung dieser Seite ist veraltet. Klicken Sie hier, um die neueste Version auf Englisch zu sehen.

User-Defined Functions

Benutzerdefinierte Funktionsblöcke wie MATLAB Function, MATLAB System, Simulink Function und Initialize Function

Verwenden Sie Blöcke aus der Bibliothek „User-Defined Function“, um die Simulink®-Modellierungsfunktionen zu erweitern, indem Sie neue Arten von Blöcken erstellen. Sie können Blockalgorithmen mithilfe von MATLAB®, C/C++ und Fortran® Code implementieren.

Blöcke

C CallerIntegrate C code in Simulink
C FunctionIntegrate and call external C/C++ code from a Simulink model (Seit R2020a)
FcnApply specified expression to input
Function CallerCall Simulink or exported Stateflow function
Initialize FunctionExecute subsystem on model initialize event
Interpreted MATLAB Function(To be removed) Apply MATLAB function or expression to input
Level-2 MATLAB S-FunctionUse Level-2 MATLAB S-function in model
MATLAB FunctionInclude MATLAB code in Simulink models
MATLAB SystemInclude System object in model
Reinitialize FunctionExecute subsystem on model or subsystem reinitialize event (Seit R2022a)
Reset FunctionExecute subsystem on model reset event
S-FunctionInclude S-function in model
S-Function BuilderIntegrate C or C++ code to create S-functions
Simulink FunctionGraphically define a function with Simulink blocks
Terminate FunctionExecute subsystem on model terminate event