Is there a way to lint check MATLAB code to help with debugging?
MATLAB includes a command called "mlint" that can be entered from the MATLAB console tab within AccelDSP. The mlint command operates off of files in the current directory (where your project files are located) and it reports back on unused variables, mismatched argument lists, and such. The following is an example:
L 1 (C 43-58): Function name 'des_function' will be known to MATLAB by its file name: 'design_function'.
L 1 (C 79-86): Input variable 'load' appears never to be used.
L 6 (C 1-11): The value assigned here to variable 'COUNT' might never be used.
L 9 (C 12-22): Persistent variable 'num' may never be used.
L 28 (C 5-22): The value assigned here to variable 'count_plus_one' might never be used.
L 150 (C 32): Use && instead of & as the AND operator in (scalar) conditional statements.
To open a window with an M-Lint Code Check Report on the entire project directory, enter: