Error with audiowrite R2020b
3 views (last 30 days)
Show older comments
[y,Fs]=audioread(InFilename);
%Downsample
fprintf('\n The downsampled sound \n')
x = y(1 :2 : length(y));
fs2 = Fs/2 ;
% sound(x,fs2);
%Save the result as down.wav
audiowrite(x, fs2, 'down.wav');
Answers (1)
See Also
Categories
Find more on Transforms 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!