Usedesignfiltto design FIR and IIR versions of a highpass filter. Specify a normalized stopband frequency of 0.3 and a normalized passband frequency of 0.6. Verify that each filter is of the correct class. Display the frequency responses of the filters.
fir = designfilt('highpassfir','StopbandFrequency',0.3,'PassbandFrequency',0.6); iir = designfilt('highpassiir','StopbandFrequency',0.3,'PassbandFrequency',0.6); isfirFIR = isfir(fir)
Digital filter, specified as adigitalFilterobject. Usedesignfiltto generate a digitalfilter based on frequency-response specifications.
Example:d = designfilt('lowpassiir','FilterOrder',3,'HalfPowerFrequency',0.5)specifies a third-order Butterworth filter with normalized 3 dB frequency 0.5π rad/sample.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.