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 Thu, 31 Mar 2016 14:26:57 +0000

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 (2024). 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
Categories
Find more on File Operations in Help Center and MATLAB Answers
Acknowledgements

Inspired by: sloc

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
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