|
|
| File Information |
| Description |
Counts the lines of source code in an M-file.
A line of source code is defined to be not a comment line, not a continuation of a previous line, and not an empty line.
The function line is included. SLOC returns the line count for the entire file, not for individual functions of a file.
If more than more statement is on the same line, that it treated as one line. For example, the line:
minx = 32; maxx = 100;
is one line of source code. |
| Acknowledgements |
This submission has inspired the following:
slocdir, slocDir
|
| MATLAB release |
MATLAB 6.5 (R13)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (8) |
| 21 Mar 2005 |
Andrej Mosat
|
|
|
| 21 Mar 2005 |
Andrej Mosat
|
|
|
| 01 Mar 2006 |
Jiro Doke
|
|
|
| 18 Jul 2007 |
Gregory Wunder
|
|
|
| 04 Dec 2007 |
Dionisio Arcano
|
|
|
| 05 May 2009 |
Diffy D
|
|
|
| 25 Oct 2011 |
David Roberts
|
|
|
| 04 Nov 2011 |
Mike
|
|
|
| Updates |
| 04 Oct 2004 |
Updated to support R14, specifically for block comments ( {%...}% ) |
| 09 Mar 2006 |
Bug fixes:
(1) The MATLAB Profiler does not include the "function" line in it's metrics, so do not count the "function" line or any "function" lines for subfunctions. (2) Also, functions (particulary nested) may be indented, so minor fix for that. |
|
Contact us at files@mathworks.com