I m creating .wav file in every iteration of for loop and that .wav files are stored in the current directory where I am working on .Now I want to create a folder in current directory and each created file should get store in the created folder in each iteration...
for i=1:size(seg_data(:,1))
w(i,:)=data(seg_data(i,1): seg_data(i,2));
wavwrite(w(i,:),['file_',num2str(i)]);
end