slocdir( directoryPath )

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

現在この提出コンテンツをフォロー中です。

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

引用

Diffy D (2026). slocdir( directoryPath ) (https://jp.mathworks.com/matlabcentral/fileexchange/24000-slocdir-directorypath), MATLAB Central File Exchange. に取得済み.

謝辞

ヒントを得たファイル: sloc

カテゴリ

Help Center および MATLAB AnswersFile Operations についてさらに検索

一般的な情報

MATLAB リリースの互換性

  • すべてのリリースと互換性あり

プラットフォームの互換性

  • Windows
  • macOS
  • Linux
バージョン 公開済み リリース ノート 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