One statement per line
ID | STAT-4 |
Title | Write one statement per line. |
Priority | Recommended |
Severity level | 9 |
Description | Write at most one statement per line. |
Rationale | Maintain readability of your code by having each line of code do exactly one thing. |
Avoid:
persistent x, y
for iNode = 1 : 3, x = x + iNode; disp(x); end
Instead use:
persistent x
persistent y
for iNode = 1 : 3
x = x + iNode;
disp(x);
end