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.

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

Introduced in R2010a