step(dfv,filt) displays
the time-varying magnitude response of the object filter, filt, in the
Dynamic Filter Visualizer figure, as long as filt has a valid
freqz() implementation.
step(dfv,B,A)
displays the magnitude response for the digital filters with numerator and denominator
polynomial coefficients stored in B1 and
A1,
B2 and
A2, ..., and
BN and
AN, respectively.
Vary the cutoff frequency of the FIR filter, k, from 0.1 to 0.5 in increments of 0.001. View the varying magnitude response using the dynamic filter visualizer.
for k = 0.1:0.001:0.5
b = fir1(90,k);
dfv(b,1);
end
Plot Time-Varying Magnitude Response of Variable Bandwidth FIR Filter