Contents

jc_0351: Methods of initialization

ID: Title

jc_0351: Methods of initialization

Priority

Recommended

Scope

MAAB

MATLAB Versions

All

Description

Simple Initialization

  • Blocks such as Unit Delay, which have an initial value field, can be used to set simple initial values.

  • To determine if the initial value needs to be displayed, see MAAB Guideline db_0140: Display of basic block parameters.

Example

Initialization that Requires Computation

The following rules apply for complex initialization:

  • The initialization should be performed in a separate subsystem.

  • The initialization subsystem should have a name that indicates that initialization is performed by the subsystem.

Complex initialization may be done at a local level (Example A), at a global level (Example B), or a combination of local and global.

Example A

Example B

Or

Rationale

  • Readability

  • Code Generation

Last Changed

V2.2

Model Advisor Check

Not applicable

Was this topic helpful?