Documentation Center

  • Trial Software
  • Product Updates

Contents

db_0112: Indexing

ID: Title

db_0112: Indexing

Priority

Strongly recommended

Scope

MAAB

MATLAB Versions

All

Prerequisites

None

Description

Use a consistent vector indexing method for all blocks.

When possible, use zero-based indexing to improve code efficiency. However, since MATLAB® blocks do not support zero-based indexing, one-based indexing can be used for models containing MATLAB blocks.

Rationale

  • Readability

  • Verification and Validation

  • Code Generation

Last Changed

V2.2

Model Advisor Check

By Task > Modeling Standards for MAAB > Simulink > Check for indexing in blocks

Was this topic helpful?