Quantcast

Documentation Center

  • Trial Software
  • Product Updates

Contents

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

Was this topic helpful?