options = designoptions(designSpecs,method)
returns all design options available for a specification object,
designSpecs, using a particular design method,
method.
Determine the available design methods using the designmethods function. To design a butterworth filter, pick butter.
designmethods(designSpecs,'SystemObject',true)
Design Methods that support System objects for class fdesign.lowpass (Fp,Fst,Ap,Ast):
butter
cheby1
cheby2
ellip
equiripple
ifir
kaiserwin
multistage
While designing the filter, you can specify additional design options. View a list of the options using the designoptions function. This function also shows the default design options the filter uses.
Use the design function to design the filter. Pass 'butter' and the specifications given by variable designSpecs, as input arguments. Specify the 'matchexactly' design option to 'passband'.
Visualize the frequency response of the designed filter.
fvtool(lpFilter)
Highpass Filter
Construct a highpass filter design specification object using fdesign.highpass. Specify the order to be 7 and the 3 dB frequency to be radians/sample.
designSpecs = fdesign.highpass('N,F3dB',7,.6);
Determine the available design methods. To design a butterworth filter, pick butter.
designmethods(designSpecs,'SystemObject',true)
Design Methods that support System objects for class fdesign.highpass (N,F3dB):
butter
maxflat
While designing the filter, you can specify additional design options. View a list of the options using the designoptions function. This function also shows the default design options the filter uses.
Design the notch filter using the design function. The resulting filter is a dsp.BiquadFilter System object™. For details on how to apply this filter on streaming data, refer to dsp.BiquadFilter.
Available design options, returned as a structure with the fields determined by the
input filter specification object, designSpecs, and the design
method chosen.
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.