フィルターのクリア

My code is compiling and numerical values of all variables are appearing in command window .problem is that .wav file is not audible.i have applied simple filter still no change except values in command window.following is the code

2 ビュー (過去 30 日間)
PathOriginal = fullfile('C:\Users\Documents\MATLAB', 'AUD-20150716-WA0032.wav');
[y, Fs, n] = wavread(PathOriginal);
b=1;
a=0.1;
a=[1 -0.1];
x(n)=y(n)-0.1*y(n-1);
y=filter(b,a,x)
what command should i use to hear the sound before and after applying filter??
[EDITED, Jan, Code formatted]
  1 件のコメント
Jan
Jan 2015 年 7 月 22 日
I do not see any connection to the tags "Matlab compiler" or "differential equations". Please use tags, which helps to identify the nature of the question.

サインインしてコメントする。

採用された回答

Jan
Jan 2015 年 7 月 22 日
PathOriginal = fullfile('C:\Users\Documents\MATLAB', 'AUD-20150716-WA0032.wav');
[y, Fs, n] = wavread(PathOriginal);
b=1;
% a=0.1; Useless, omit this line!
a=[1 -0.1];
% ??? x(n) = y(n)-0.1*y(n-1);
yFiltered = filter(b,a,y);
audioplayer(y, FS);
audioplayer(yFiltered, FS);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSignal Generation and Preprocessing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by