lineCounter(input)

Count the number of lines in a single m-file or the m-files in a directory.

Vous suivez désormais cette soumission

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

Citation pour cette source

Jason Kulpe (2026). lineCounter(input) (https://fr.mathworks.com/matlabcentral/fileexchange/64081-linecounter-input), MATLAB Central File Exchange. Extrait(e) le .

Informations générales

Compatibilité avec les versions de MATLAB

  • Compatible avec toutes les versions

Plateformes compatibles

  • Windows
  • macOS
  • Linux
Version Publié le Notes de version Action
1.0.0.0

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