Main Content

na_0034: MATLAB Function block input/output settings

Since R2020a

Guideline Publication

Control Algorithm Modeling Guidelines - Using MATLAB®, Simulink®, and Stateflow®

Sub ID Recommendations

  • NA-MAAB — a

  • JMAAB — a

MATLAB Versions

All

Rule

Sub ID a

The data type in the model explorer shall be defined for input and output to the MATLAB Function block.

Custom Parameter

Not Applicable

Rationale

Sub ID a:

  • Defining the data type for input and output to the MATLAB Function block helps prevent simulation errors and unexpected behavior.

Verification

Model Advisor check: Check input and output settings of MATLAB Functions (Simulink Check)

Last Changed

R2020a

Version History

Introduced in R2020a