View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Check Missing Semicolons.

Be the first to rate this file! 4 Downloads (last 30 days) File Size: 1.44 KB File ID: #41873 Version: 1.0

Check Missing Semicolons.



Use if you have a mystery variable printing to screen from one or more functions/scripts.

| Watch this File

File Information

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.


MATLAB release MATLAB 8.1 (R2013a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.

Contact us