slocDir

版本 1.1.0.0 (2.4 KB) 作者: David Roberts
Counts number source lines of code in a directory tree. (Requires sloc, FIle Exchange ID 3900)
4.3K 次下载
更新时间 2009/7/22

查看许可证

This function returns the line count for directory tree. If there are multiple functions in one file, subfunctions are not counted separately, but rather together. This function calls sloc.m to count lines of code on an individual file. Sloc can be obtained from the File Exchange on MATLAB Central.

The following statistics are calculated for a directory tree
- sum of lines of code from all mfiles in the directory tree
- sum of lines of code from all mfiles in parent directory
- sum of lines of code from all mfiles in subdirectories
- lines of code in each mfile in directory tree

The output of this function can either be to a text file or the MATLAB command prompt or both.

引用格式

David Roberts (2025). slocDir (https://www.mathworks.com/matlabcentral/fileexchange/23837-slocdir), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2008a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 File Operations 的更多信息
致谢

参考作品: sloc

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.1.0.0

Note in summary to also download sloc from the file exchange.

1.0.0.0