Signal Processing Toolbox Previous page   Next Page

Exporting a Filter Design

You can save your filter design by

You can also send your filter to a C header file or generate an M-file. The M-file contains code that replicates the filter you designed. See the following sections:

Exporting Coefficients or Objects to the Workspace

You can save the filter either as filter coefficients variables or as a dfilt or mfilt filter object variable. (Note that you must have the Filter Design Toolbox installed to save as an mfilt.) To save the filter to the MATLAB workspace:

  1. Select Export from the File menu. The Export dialog box appears.
  2. Select Workspace from the Export To menu.
  3. Select Coefficients from the Export As menu to save the filter coefficients or select Objects to save the filter in a filter object.
  4. For coefficients, assign variable names using the Numerator (for FIR filters) or Numerator and Denominator (for IIR filters), or SOS Matrix and Scale Values (for IIR filters in second-order section form) text boxes in the Variable Names region.
  1. For objects, assign the variable name in the Discrete Filter (or Quantized Filter) text box. If you have variables with the same names in your workspace and you want to overwrite them, select the Overwrite Variables check box.

  1. Click the Export button.


Previous page  Filter Structures Exporting Coefficients to an ASCII File Next page

© 1994-2005 The MathWorks, Inc.