Main Content
jc_0511: Return values from a graphical function
Since R2020a
Guideline Publication
Control Algorithm Modeling Guidelines - Using MATLAB®, Simulink®, and Stateflow®
Sub ID Recommendations
NA-MAAB — No recommendations
JMAAB — a
MATLAB Versions
All
Rule
Sub ID a
The return value for graphical functions shall be set in one place only.
Custom Parameter
Not Applicable
Example — Correct
Example — Incorrect
Rationale
Sub ID a:
Modifications to the output name is limited to prevent the changes from being missed or overlooked.
Verification
Model Advisor check: Check return value assignments in Stateflow graphical functions (Simulink Check)
Last Changed
R2020a
See Also
Create Flow Charts in Stateflow (Stateflow)
Create Flow Charts by Using Pattern Wizard (Stateflow)
Version History
Introduced in R2020a