File Exchange

image thumbnail

How many M-codes have you written?

version 1.0.0.0 (1.94 KB) by Zhiqiang Zhang
This script let you count the number of M-codes you have written under specific directory.

0 Downloads

Updated 24 Mar 2011

View License

MCount counts the number of M-codes you have written.

MCount.lines(path) count the lines you have written under directory filepath.

MCount.reallines(path) count the lines you have written under directory filepath, but omits the emtpy lines and comment lines.

MCount.size(path) adds up the size of your m-files under directory filepath

All of them support multi-paths (in cells), for example,
MCount.lines({'patha', 'pathb/pathc', 'filed'});

My(zhang@zhiqiang.org) result: in recent 1 year, I wrote 19524 lines of M-codes totally, 12311 lines except for empty lines and comments lines, 603K in file size.

url: http://zhiqiang.org/blog/it/how-many-codes-have-you-written.html

Comments and Ratings (0)

MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.


Learn About Live Editor