You can use the dir function in MATLAB to list all files within a directory, including all subdirectories. Then, you can loop through the output of dir and detect which files have an audio file extension (e.g. .wav, .mp3, etc.).
Here's an example code that displays all the audio files in subdirectory:
main.m1113 chars30 lines
Replace path/to/parent/folder
with the directory path containing the subfolder. The code only searches for files with extensions .wav, .mp3, .aac, and .flac. You can add or remove file types as needed.
gistlibby LogSnag