image thumbnail


version (9.97 KB) by Yair Altman
display information about the code size of a given source file or project folder


Updated 09 Aug 2015

View License

CodeSize displays information about the number of files/lines/characters within a given source file (*.m/c/h/java), function handle or project folder. CodeSize segments the results into comments and non-comments.
Now you can brag to your boss or client that your source code has a total of 2MB, with 40K lines, 25% of which are comments.

See contained help for usage and known issues/limitations.

Bugs and suggestions:
Please send to Yair Altman (altmany at gmail dot com)

Cite As

Yair Altman (2021). CodeSize (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!