Code covered by the BSD License  

Highlights from
How many M-codes have you written?

Be the first to rate this file! 4 Downloads (last 30 days) File Size: 1.94 KB File ID: #30843

How many M-codes have you written?

by Zhiqiang Zhang

 

24 Mar 2011

This script let you count the number of M-codes you have written under specific directory.

| Watch this File

File Information
Description

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

MATLAB release MATLAB 7.8 (R2009a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
count Zhiqiang Zhang 24 Mar 2011 10:13:02

Contact us at files@mathworks.com