find .mp3 and .wav files in folder

1 回表示 (過去 30 日間)
Biruntha Gnaneswaran
Biruntha Gnaneswaran 2016 年 1 月 27 日
回答済み: Stephen23 2016 年 1 月 27 日
Hi,
I want to read both .mp3 and .wav files in folder at same time. How can i do this?

回答 (1 件)

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

カテゴリ

Help Center および File ExchangeAudio I/O and Waveform Generation についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by