Function indentation cc4m_logo_inline

IDLAYOUT-2
TitleDo not indent functions on the root level of a file.
PriorityStrongly recommended
Severity level10
DescriptionOnly methods in a classdef file and nested functions shall be indented. This can be set as a preference in MATLAB.
RationaleHaving one less level of indentation makes for shorter lines of code, improving readability.

Avoid:

function computeWeight(in)
    weight = 2 * in;
end

Instead use:

function computeWeight(in)
weight = 2 * in;
end