slocdir( directoryPath )

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

Ahora está siguiendo esta publicación

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

Citar como

Diffy D (2026). slocdir( directoryPath ) (https://es.mathworks.com/matlabcentral/fileexchange/24000-slocdir-directorypath), MATLAB Central File Exchange. Recuperado .

Agradecimientos

Inspirado por: sloc

Categorías

Más información sobre File Operations en Help Center y MATLAB Answers.

Información general

Compatibilidad con la versión de MATLAB

  • Compatible con cualquier versión

Compatibilidad con las plataformas

  • Windows
  • macOS
  • Linux
Versión Publicado Notas de la versión 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