필터 지우기
필터 지우기

Read different file names using wavread

조회 수: 1 (최근 30일)
Ikra89
Ikra89 2013년 2월 10일
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

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 2월 10일
편집: Azzi Abdelmalek 2013년 2월 10일
for k=1:6
filename=sprintf('sound%d.wav',k)
s{k}=wavread(filename)
end

추가 답변 (1개)

Ikra89
Ikra89 2013년 2월 10일
its working
thank you very much :)

카테고리

Help CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by