image thumbnail

slocdir( directoryPath )

version 1.1.0.0 (977 Bytes) by Diffy D
Go recursively into folders to count the .m lines of code

1.2K Downloads

Updated 31 Mar 2016

View License

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

Cite As

Diffy D (2022). slocdir( directoryPath ) (https://www.mathworks.com/matlabcentral/fileexchange/24000-slocdir-directorypath), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: sloc

Community Treasure Hunt

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

Start Hunting!