Main Content

kaiserwin

Kaiser window filter from specification object

Syntax

kFilter = design(d,'kaiserwin','SystemObject',true)
kFilter = design(d,'kaiserwin',designoption,value,designoption,...
value,'SystemObject',true)

Description

kFilter = design(d,'kaiserwin','SystemObject',true) designs a digital filter kFilter that uses a Kaiser window. For kaiserwin to work properly, the filter order in the specifications object must be even. In addition, higher order filters (filter order greater than 120) tend to be more accurate for smaller transition widths. kaiserwin returns a warning when your filter order may be too low to design your filter accurately.

kFilter = design(d,'kaiserwin',designoption,value,designoption,...
value,'SystemObject',true)
returns a filter where you specify design options as input arguments and the design process uses the Kaiser window technique.

To determine the available design options, use designopts with the specification object and the design method as input arguments as shown.

designopts(d,'method')

For complete help about using kaiserwin, refer to the command line help system. For example, to get specific information about using kaiserwin with d, the specification object, enter the following at the MATLAB prompt.

help(d,'kaiserwin')

Examples

collapse all

This example designs a direct form FIR filter from a halfband filter specification object.

d = fdesign.halfband('n,tw',200,0.01);
hbFilter = design(d,'kaiserwin','filterstructure','dffir',...
    SystemObject=true)
hbFilter = 
  dsp.FIRFilter with properties:

            Structure: 'Direct form'
      NumeratorSource: 'Property'
            Numerator: [0 -0.0028 0 0.0029 0 -0.0030 0 0.0030 0 -0.0031 0 0.0032 0 -0.0033 0 0.0034 0 -0.0035 0 0.0036 0 -0.0037 0 0.0038 0 -0.0039 0 0.0041 0 -0.0042 0 0.0043 0 -0.0045 0 0.0046 0 -0.0048 0 0.0050 0 -0.0051 0 0.0053 0 ... ] (1x201 double)
    InitialConditions: 0

  Use get to show all properties

filterAnalyzer(hbFilter);

In this example, kaiserwin uses an interpolating filter specification object.

d = fdesign.interpolator(4,'lowpass');
interpFilter= design(d,'kaiserwin',SystemObject=true)
interpFilter = 
  dsp.FIRInterpolator with properties:

    InterpolationFactor: 4
        NumeratorSource: 'Property'
              Numerator: [3.4579e-04 2.6057e-04 -4.2478e-05 -4.6005e-04 -7.6928e-04 -7.3242e-04 -2.4567e-04 5.5097e-04 0.0013 0.0015 9.3584e-04 -3.1565e-04 -0.0017 -0.0025 -0.0021 -4.8831e-04 0.0018 0.0036 0.0039 0.0021 -0.0012 ... ] (1x147 double)

  Use get to show all properties

filterAnalyzer(interpFilter);

Version History

Introduced in R2011a

See Also

|