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_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

Not applicable

Introduced in R2010a

Was this topic helpful?