Enhance readability by ensuring all concepts are represented uniquely. Reduce chance of error from misunderstood definition.
It enhances readability to group variables.
persistent x, y, z
global REVENUE_JANUARY, REVENUE_FEBRUARY
It is standard practice in other languages to document variables where they are declared. Since MATLAB does not use variable declarations, this information can be provided in comments.
% pointArray Points are in rows with coordinates in columns.
This gives additional information on rationale, usage or constraints.
THRESHOLD = 10; % Maximum noise level found by experiment.