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.
Design an FIR filter with a time-varying magnitude and phase response. Plot this varying response on a dynamic filter visualizer in normalized frequency units.
Create a dsp.DynamicFilterVisualizer object. Set the PlotAsMagnitudePhase and the NormalizedFrequency properties to true.
dfv = dsp.DynamicFilterVisualizer(PlotAsMagnitudePhase=1,...
NormalizedFrequency=true,ShowLegend=true,...
Title="Magnitude and Phase Response",...
FilterNames="FIR Filter")
dfv =
dsp.DynamicFilterVisualizer handle with properties:
FFTLength: 2048
NormalizedFrequency: 1
FrequencyRange: [0 1]
XScale: 'Linear'
MagnitudeDisplay: 'Magnitude (dB)'
PlotAsMagnitudePhase: 1
AxesScaling: 'Auto'
Show all properties
Vary the cutoff frequency of the FIR filter k from 0.1 to 0.5 in increments of 0.001. View the varying magnitude and phase response using the dynamic filter visualizer.
for k = 0.1:0.001:0.5
b = designLowpassFIR(FilterOrder=90,CutoffFrequency=k);
dfv(b,1);
end
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Website auswählen
Wählen Sie eine Website aus, um übersetzte Inhalte (sofern verfügbar) sowie lokale Veranstaltungen und Angebote anzuzeigen. Auf der Grundlage Ihres Standorts empfehlen wir Ihnen die folgende Auswahl: .
Sie können auch eine Website aus der folgenden Liste auswählen:
So erhalten Sie die bestmögliche Leistung auf der Website
Wählen Sie für die bestmögliche Website-Leistung die Website für China (auf Chinesisch oder Englisch). Andere landesspezifische Websites von MathWorks sind für Besuche von Ihrem Standort aus nicht optimiert.