SUBDIR *new*

Recursively search for files and/or directorys under given folder without using of global variables.

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

SUBDIR
returns all subfolder under current path.
P = SUBDIR('directory_name')
stores all subfolders under given directory into a variable 'P'

[P F] = SUBDIR('directory_name')
stores all subfolders under given directory into a
variable 'P' and all filenames into a variable 'F'.
use sort([F{:}]) to get sorted list of all filenames.

引用

Elmar Tarajan (2026). SUBDIR *new* (https://jp.mathworks.com/matlabcentral/fileexchange/1492-subdir-new), MATLAB Central File Exchange. に取得済み.

謝辞

ヒントを与えたファイル: RPCODE, folders sub-folders

カテゴリ

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

一般的な情報

MATLAB リリースの互換性

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

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

  • Windows
  • macOS
  • Linux
バージョン 公開済み リリース ノート Action
1.0.0.0

the output of results in the new version is more user friendly.