Question: fs = 1 0 3 . 4 e 3 ; Ts = 1 / fs; tlen = . 4 ; t = 0 :Ts:tlen -
fse;
Tsfs;
tlen;
t:Ts:tlenTs;
Nlengtht;
xsinpift;
standev;
noiserandnNstandev;
xnxnoise;
Omegacfpi;
Omegaopi;
M;
n:MfloorM;
hOmegacfpisincnOmegacfpi;
whammingM;
A;
BhwcosnOmegao;
yfilterBAxn;
subplot
plottx'LineWidth',;
hold on
plottxn'LineWidth',;
plottyg'LineWidth',;
axisff;
xlabeltimes;
ylabelamplitude arbitrary units';
legendoriginal signal','with noise','filtered';
hold off
Xfftx;
Xnfftxn;
Yffty;
subplot
fbinfsN;
f:fbin:fsfbin;
plotflogabsX'LineWidth',;
hold on
plotflogabsXn'LineWidth',;
plotflogabsYg'LineWidth',;
xlabelfrequency Hz;
ylabelmagnitude response, dB;
legendnoisy signal spectrum','filtered spectrum'
axise fs
hold off
What band of frequencies will this filter keep?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
