Read different file names using wavread

1 vue (au cours des 30 derniers jours)
Ikra89
Ikra89 le 10 Fév 2013
Hello all
i have a problem about how to read many files using wavread.
i confused about how to read different name using single line code.
for eg:
i have files:
sound1
sound2
sound3
sound4
sound5
if 1 sound file have dimension 10000x1, so i have 10000x5.
how to read and save into new matrix name with that conditon.
thanks before
regards
Ikra

Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 10 Fév 2013
Modifié(e) : Azzi Abdelmalek le 10 Fév 2013
for k=1:6
filename=sprintf('sound%d.wav',k)
s{k}=wavread(filename)
end

Plus de réponses (1)

Ikra89
Ikra89 le 10 Fév 2013
its working
thank you very much :)

Catégories

En savoir plus sur Audio I/O and Waveform Generation dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by