Hi, I am looking for some help.
I have a couple of audio files in a directory.
I extracted a portion of each audio file, and I want to save it into a new audio file.
How do I do it in a loop such that it is saved like in the following examples?
The below is my current code. Could someone vet for me especially the last two lines before end?
Thank you in advance!
Initial Files Extracted New Files
for p = 1:3
startSample = n;
endSample = length(data);
extractedData = data(startSample:endSample);
filename = sprintf('%s%d.mat', extractedData_, p);