Scripts cc4m_logo_inline

IDFCNS-4
TitleDo not use scripts. Use functions instead.
PriorityStrongly recommended
Severity level4
DescriptionUse functions even if there are no inputs or outputs.
RationaleThe scope of variables in a script is not bounded as one might expect. It is therefore safer to use functions instead. Additionally, scripts are not compatible with Matlab Coder.
ExceptionInitialization of a project, or specifically creating base workspace structures that are used in models, without the need for assignin.