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.

na_0034: MATLAB Function block input/output settings

ID: Title

na_0034:MATLAB® Function block input/output settings

Priority

Strongly recommended

Scope

NA-MAAB

MATLAB Versions

All

Prerequisites

None

Description

All inputs and outputs to MATLAB function blocks should have the data type explicitly defined, either in the Model Explorer or at the start of the function. This provides a more rigorous data type check for MATLAB Function blocks and prevents the need for using assert statements.

Rationale

  • Readability

  • Verification and Validation

  • Workflow

  • Code Generation

Last Changed

V3.0

Model Advisor Check

By Task > Modeling Standards for MAAB > MATLAB Functions > Check input and output settings of MATLAB Functions

For check details, see Check input and output settings of MATLAB Functions (Simulink Verification and Validation).

Introduced in R2013a

Was this topic helpful?