You can use the dir function to get a list of all the audio filenames in the folder. Then, you can loop through the list, read each audio file in turn using the audioread function, and sequentially name them.
Here's an example code snippet that does this:
main.m554 chars11 lines
This code will rename all the .wav files in the folder with 3-digit sequential names (e.g. 001.wav, 002.wav, etc.). You can modify the code for other audio file formats as well by changing the *.wav wildcard in the dir function call.
gistlibby LogSnag