mp_0008: Format of parentheses
Since R2024b
Guideline Publication
Control Algorithm Modeling Guidelines - Using MATLAB®, Simulink®, and Stateflow®
Sub ID Recommendations
NA-MAAB — a
JMAAB — a
MATLAB Versions
All
Rule
Sub ID a
Single-byte spaces shall not be inserted between function/variable names and left parentheses.
Example — Correct
fcnc(arg) foo(bar)
Example — Incorrect
fcnc (arg) foo (bar)
Rationale
Sub ID a:
Readability is improved by standardizing the way to write statements according to common practices.
Verification
Model Advisor check: Check for spaces between function or variable names and left parenthesis symbol (Simulink Check)
Last Changed
R2024b
Version History
Introduced in R2024b