Columns with implicit meaning
| ID | FCNS-15 |
| Title | Avoid the use of matrices in which rows or columns have implicit meaning. |
| Priority | Recommended |
| Severity level | 5 |
| Description | Avoid the use of matrices in which rows or columns have implicit meaning. Use individual vectors instead. |
| Rationale | Using matrices with implicit row or column meanings reduces the readability and robustness of the code. |
Avoid:
distance = sqrt(coordinates(:, 1) .^ 2 + coordinates(:, 2) .^ 2);
Instead use:
distance = sqrt(x .^ 2 + y .^ 2);