| Contents | Index |
You may want to include filter information in an external C program. To create a C header file with variables that contain filter parameter data, follow this procedure:
Select Targets > Generate C Header. The Generate C Header dialog box appears.

Enter the variable names to be used in the C header file. The particular filter structure determines the variables that are created in the file
Filter Structure | Variable Parameter |
|---|---|
Direct-form I | Numerator, Numerator length*, Denominator, Denominator length*, and Number of sections (inactive if filter has only one section) |
Lattice ARMA | Lattice coeffs, Lattice coeffs length*, Ladder coeffs, Ladder coeffs length*, Number of sections (inactive if filter has only one section) |
Lattice MA | Lattice coeffs, Lattice coeffs length*, and Number of sections (inactive if filter has only one section) |
Direct-form FIR Direct-form FIR transposed | Numerator, Numerator length*, and Number of sections (inactive if filter has only one section) |
*length variables contain the total number of coefficients of that type.
Select Export Suggested to use the suggested data type or select Export As and select the desired data type from the pull-down.
Click OK to save the file and close the dialog box or click Apply to save the file, but leave the dialog box open for additional C header file definitions.
![]() | Exporting a Filter Design | Generating MATLAB Code | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |