Main Content

La traduzione di questa pagina non è aggiornata. Fai clic qui per vedere l'ultima versione in inglese.

Nozioni di base sul blocco MATLAB Function

Integrare funzioni di MATLAB® nei modelli di Simulink®

Utilizzare i blocchi MATLAB Function per implementare le funzioni di MATLAB nei modelli di Simulink.

Strumenti

Editor del blocco MATLAB functionCreate, edit, and debug MATLAB code in MATLAB Function blocks

Blocchi

MATLAB FunctionInclude MATLAB code in Simulink models

Oggetti

MATLABFunctionConfigurationMATLAB Function block property configuration (Da R2019b)
Stateflow.EMChartStateflow interface to MATLAB Function block

Argomenti

Risoluzione dei problemi

Debug MATLAB Function Blocks

Debug MATLAB Function block code during simulation.

Prevent Algebraic Loop Errors in MATLAB Function, Chart, and Truth Table Blocks

Adhere to restrictions for using MATLAB Function blocks, Chart, and Truth Table blocks in feedback loops.

Initialize Persistent Variables in MATLAB Functions

Specialized semantics impact the way that a function initializes persistent data.