To create an array of audio files and their length in MATLAB, you can use the following code:
main.m493 chars16 lines
This code will create an array audio_lengths containing the length of each audio file in seconds. Note that the code assumes that the audio files are in .wav format. If your audio files have a different format, you will need to modify the dir function accordingly.
gistlibby LogSnag