slocdir( directoryPath )

Go recursively into folders to count the .m lines of code

您现在正在关注此提交

A simple recursive function which uses the sloc function to count the number of lines of .m code.
The sloc function can be found here : http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=3900&objectType=file

引用格式

Diffy D (2026). slocdir( directoryPath ) (https://ww2.mathworks.cn/matlabcentral/fileexchange/24000-slocdir-directorypath), MATLAB Central File Exchange. 检索时间: .

致谢

参考作品: sloc

类别

Help CenterMATLAB Answers 中查找有关 File Operations 的更多信息

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
1.1.0.0

Fix a bug, change strcmp to strcat in the warning

Updated accordingly with the comments given by users

1.0.0.0