Comment and String/character array checking using aspell
aspell
perl>=v5
usage: ./acc (-x "path") <mode> <file> (<aspell options>)
<mode> must be a valid perl file that removes everything that is not
a comment or a string in the code.
<file> the target file
optional:
<aspell options> options that are directly passed to aspell
<-x> exclude paths, only one path per "-x" allowed
./acc matlab_comments_strings.pl "$(find . -type f -name "*.m")"
MATLAB:
transposes only occur on capital letters i.e vectors/matrices are always capitalized