I tried to add noise with randn function but its not filtered by butter filter. How to add high frequency noise in a .wav audio so that I can filter it with butterworth filter?
3 ビュー (過去 30 日間)
古いコメントを表示
%Butterworth filter design
n=10;
wn=0.4;
[a b]=butter(n,wn,'low');
%Reading Audio Signal
[Data,fs,nbits] = wavread('sound');
Data=Data(:,1)';
NoiseData=Data+.005*randn(size(Data));
wavplay(NoiseData,fs)
DataOut=filter(a,b,NoiseData);
0 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Audio Processing Algorithm Design についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!