SUBDIR *new*

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

Vous suivez désormais cette soumission

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.

Citation pour cette source

Elmar Tarajan (2026). SUBDIR *new* (https://fr.mathworks.com/matlabcentral/fileexchange/1492-subdir-new), MATLAB Central File Exchange. Extrait(e) le .

Remerciements

A inspiré : RPCODE, folders sub-folders

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

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