Check Missing Semicolons.
I'm not the best programmer. I have a tendency to leave semicolons off when I'm debugging, so I can see what's happening in certain stages. I often then save and forget about it, and when I come back a week later, my code will print random variables to the screen which is very frustrating.
If you create a cell array with the string names of any .m files, this will then run mlint on the files you select and tell you which, if any, lines are missing semicolons.
I can't take credit for the method - one of my colleagues did something similar via the command window. I simply automated it because I'm lazy.
Enjoy!
Cite As
Harry Smith (2024). Check Missing Semicolons. (https://www.mathworks.com/matlabcentral/fileexchange/41873-check-missing-semicolons), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |