필터 지우기
필터 지우기

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 CenterFile Exchange에서 Signal Generation and Preprocessing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by