| |
ID | LAYOUT-16 |
Title | Separate blocks of code by one or more blank lines. |
Priority | Recommended |
Severity level | 9 |
Description | Separate coherent blocks of code by one or more blank lines. |
Rationale | Increases the readability of the code. |
deltaX = mean(xIn);
xOut = xIn - deltaX;
scalingFactor = newZ / currentZ;
xOut = xOut .* scalingFactor;
xOut = xOut + deltaX;
% Shift to origin.
deltaX = mean(xIn);
xOut = xIn - deltaX;
% Calculate scaling.
scalingFactor = newZ / currentZ;
xOut = xOut .* scalingFactor;
% Shift back.
xOut = xOut + deltaX;