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.
Cita come
Raymond Norris (2024). sloc (https://www.mathworks.com/matlabcentral/fileexchange/3900-sloc), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
Tag
Riconoscimenti
Ispirato: slocDir, slocdir( directoryPath ), Code for Webinar "Signal Processing and Machine Learning Techniques for Sensor Data Analytics", Code for Webinar "Signal Processing for Machine Learning"
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
Versione | Pubblicato | Note della release | |
---|---|---|---|
1.0.0.0 | Bug fixes:
|