lineCounter(input)

Count the number of lines in a single m-file or the m-files in a directory.
17 Downloads
Aktualisiert 11. Aug 2017

Lizenz anzeigen

At present there is no built in MATLAB tool to count the number of lines in a given m-file. This submission solves that problem. In addition to a single m-file, the function looks in a given directory, and all sub-directories, to give the total number of m-files and total number of lines. Comments and white space are included in the count. This function will work for any version of MATLAB

Zitieren als

Jason Kulpe (2024). lineCounter(input) (https://www.mathworks.com/matlabcentral/fileexchange/64081-linecounter-input), MATLAB Central File Exchange. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R2013a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu File Operations finden Sie in Help Center und MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.0.0

Backdated version to R2013a since the "newest" function required is in that release.