Indentation length 
ID | LAYOUT-6 |
Title | Indentation shall be four spaces long. |
Priority | Recommended |
Severity level | 9 |
Description | Indentation shall be four spaces long. This is the default setting in the MATLAB editor. |
Rationale | Using an adequate and consistent number of spaces for indentation improves readability and prevents unnecessary changes when others work on the code. |
Avoid:
if x > 0
if x < 2
disp(x)
end
end
Instead use:
if x > 0
if x < 2
disp(x)
end
end