Documentation Center

  • Trial Software
  • Product Updates

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 Function blocks

Was this topic helpful?