Main Content

Filter Builder Design Process

过滤器构建器简介

滤波器启用器function provides a graphical interface to thefdesign面向对象的滤波器设计范例,旨在减少滤波器设计过程中的开发时间。滤波器启用器使用以规范为中心的方法来找到所需响应的最佳算法。

笔记

滤波器启用器requires the Signal Processing Toolbox™. The functionality of滤波器启用器is greatly expanded by the DSP System Toolbox™. Many of the features described or displayed below are only available if the DSP System Toolbox is installed. You may verify your installation by typingver在命令提示符下。

Design a Filter Using Filter Builder

使用的基本工作流程滤波器启用器是选择过滤器的约束和规格,并将其用作设计中的起点。推迟过滤器的算法选择可以根据所需的性能标准自动确定最佳的设计方法。以下是设计过滤器的每个步骤的细节滤波器启用器

选择一个响应

When you open the滤波器启用器通过键入工具:

滤波器启用器
在Matlab®命令提示符,Response Selection出现对话框,列出DSP系统工具箱中可用的所有可能的过滤响应。

笔记

This step cannot be skipped because it is not automatically completed for you by the software. You must select a response to initiate the filter design process.

在你选择了一个回应,说带通,你start the design of the Specifications Object, and the Bandpass Design dialog box appears. This dialog box contains aMainpane, a数据类型窗格和代码生成pane. The specifications of your filter are generally set in theMainpane of the dialog box.

数据类型窗格为精度和数据类型提供设置,以及代码生成窗格包含用于完成过滤器设计的各种实现的选项。

对于过滤器的初始设计,您将主要使用Mainpane.

Bandpass Design对话框包含确定带通滤波器规格所需的所有参数。在Main窗格取决于您正在设计的过滤器类型。但是,无论您选择哪种类型的过滤器Response Selectiondialog box, the filter design dialog box contains theMain,,,,数据类型,,,,and代码生成窗格。

选择a Specification

To choose the specification for the bandpass filter, you can begin by selecting anImpulse Response,,,,订单模式,,,,and过滤器类型in the滤波器规格frame of theMain Pane。You can further specify the response of your filter by setting frequency and magnitude specifications in the appropriate frames on theMain Pane

笔记

频率,,,,震级,,,,and算法规格是相互依存的,可能会根据您的滤波器规格选择。选择过滤器的规格时,请先选择过滤器规格,然后在对话框中进行操作 - 此方法可确保对话框中可用的依赖规格的最佳设置。

选择an Algorithm

这algorithms available for your filter depend upon the filter response and design parameters you have selected in the previous steps. For example, in the case of a bandpass filter, if the impulse response selected is IIR and the订单模式字段设置为最低限度,可用的设计方法是Butterworth,,,,Chebyshev类型I或II,或Elliptic,,,,whereas if the订单模式字段设置为指定,,,,the design method available isIIR least p-norm

Customize the Algorithm

By expanding theDesign options部分算法框架,您可以进一步自定义指定的算法。可用的选项将取决于对话框中已经选择的算法和设置。如果是带路IIR滤波器,则使用Butterworth方法,设计选项,例如完全匹配are available. Select the使用系统对象实现过滤器复选框为设计的过滤器生成系统对象™。使用这些设置,滤波器启用器生成aDSP.BiquadFilter系统对象

Analyze the Design

要分析过滤器响应,请单击“视图过滤器响应”按钮。滤波器可视化工具打开显示滤波器响应的幅度图。

Realize or Apply the Filter to Input Data

当您通过设计迭代和分析实现了所需的过滤器响应时滤波器可视化工具,将过滤器应用于输入数据。同样,该步骤永远不会由软件自动为您执行。要过滤数据,您必须明确执行此步骤。在里面Bandpass Designdialog box, clickOKand DSP System Toolbox creates the filter System object and exports it to the MATLAB workspace.

然后,该过滤器准备用于过滤实际输入数据。要过滤输入数据,X,,,,enter the following in the MATLAB command prompt:

>> y = hbp(x);

小费

如果您有simulink金宝app®,您可以选择将此过滤器导出到Simulink块中金宝apprealizemdl命令。要获得此命令的帮助,请输入:

>> help realizemdl