Align struct definition

TitleKeep name-value pairs aligned in a struct declaration.
Severity level9
DescriptionWhen defining a struct, align the names and values of the struct fields.
RationaleThis improves readability of the code by making it clearer what fields are defined and by what values.


s = struct("name", "Albert", "age", 2021 - 1979, "isValid", ismember("Albert", allNames));

Instead use:

s = struct(...
    "name",     "Albert", ...
    "age",      2021 - 1979, ...
    "isValid",  ismember("Albert", allNames))