Documentation

jc_0501: Format of entries in a State block

ID: Title

jc_0501: Format of entries in a State block

Priority

Recommended

Scope

MAAB

MATLAB Versions

All

Prerequisites

None

Description

A new line should:

  • Start after the entry (en), during (du), and exit (ex) statements.

  • Start after the completion of an assignment statement “;”.

Correct

Incorrect

Failed to start a new line after en, du, and ex.

Incorrect

Failed to start a new line after the completion of an assignment statement “;”.

Rationale

Readability

Last Changed

V2.0

Model Advisor Check

By Task > Modeling Standards for MAAB > Stateflow > Check entry formatting in State blocks in Stateflow charts

For check details, see Check entry formatting in State blocks in Stateflow charts (Simulink Check).

Introduced in R2010a

Was this topic helpful?