Scripts
ID | FCNS-4 |
Title | Do not use scripts. Use functions instead. |
Priority | Strongly recommended |
Severity level | 4 |
Description | Use functions even if there are no inputs or outputs. |
Rationale | The 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. |
Exception | Initialization of a project, or specifically creating base workspace structures that are used in models, without the need for assignin. |