find .mp3 and .wav files in folder

1 view (last 30 days)
Biruntha Gnaneswaran
Biruntha Gnaneswaran on 27 Jan 2016
Answered: Stephen23 on 27 Jan 2016
Hi,
I want to read both .mp3 and .wav files in folder at same time. How can i do this?

Answers (1)

Stephen23
Stephen23 on 27 Jan 2016
S = [dir('*.mp3');dir('*.wav')]
N = {S.name}
for k + numel(N)
N{k} % name of file
.. your code
end

Categories

Find more on Audio I/O and Waveform Generation in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!