This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

na_0002: Appropriate implementation of fundamental logical and numerical operations

ID: Title

na_0002: Appropriate implementation of fundamental logical and numerical operations

Priority

Mandatory

Scope

MAAB

MATLAB Versions

All

Prerequisites

None

Description

  • Blocks that are intended to perform numerical operations must not be used to perform logical operations.

    Incorrect

  • A logical output should never be connected directly to the input of blocks that operate on numerical inputs.

  • The result of a logical expression fragment should never be operated on by a numerical operator.

    Incorrect

  • Blocks that are intended to perform logical operations must not be used to perform numerical operations.

  • A numerical output should never be connected to the input of blocks that operate on logical inputs.

    Incorrect

Rationale

  • Readability

  • Verification and Validation

  • Workflow

  • Code Generation

Last Changed

V3.0

Model Advisor Check

By Task > Modeling Standards for MAAB > Simulink > Check fundamental logical and numerical operations

For check details, see Check fundamental logical and numerical operations.

Introduced in R2010a