Contents

db_0115: Simulink patterns for case constructs

ID: Title

db_0115: Simulink® patterns for case constructs

Priority

Strongly recommended

Scope

MAAB

MATLAB Versions

All

Prerequisites

None

Description

Use the following patterns for case constructs within a Simulink model:

Equivalent FunctionalitySimulink Pattern

case with Switch Case block

switch (PRNDL_Enum) 
{ 
case 1    
  TqEstimate = ParkV;
  break; 
case 2    
  TqEstimae = RevV;    
  break; 
default     
  TqEstimate = NeutralV;    
  break; 
} 

Rationale

  • Readability

Last Changed

V2.2

Model Advisor Check

Not applicable

Was this topic helpful?