help how could read 2 or more wav file
2 views (last 30 days)
Show older comments
i would like to kno how could i read 2 or more wave file in same code. actually i tried to use the same way for read one wav file ex: y = wavread('videoplayback2.wav','videoplayback3.wav') but i got error
0 Comments
Accepted Answer
Wayne King
on 12 Nov 2011
y = cell(2,1);
for nn = 2:3
filename = ['videoplayback' num2str(nn) '.wav'];
y{nn-1} = wavread(filename);
end
2 Comments
Wayne King
on 12 Nov 2011
yes, but you can index that loop however you want.
The cell array y stores the audio. y{1} is videoplayback2, y{2} is videoplayback3
More Answers (0)
See Also
Categories
Find more on Audio I/O and Waveform Generation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!