Analyzing the Filter

Displaying Filter Responses

You can view the following filter response characteristics in the display region or in a separate window (see Displaying the Response in FVTool):

If you have Filter Design Toolbox product installed, two other analyses are available: magnitude response estimate and round-off noise power. These two analyses are the only ones that use filter internals.

For descriptions of the above responses and their associated toolbar buttons and other FDATool toolbar buttons, see fvtool.

You can display two responses in the same plot by selecting Analysis > Overlay Analysis and selecting an available response. A second y-axis is added to the right side of the response plot. (Note that not all responses can be overlaid on each other.)

You can also display the filter coefficients and detailed filter information in this region.

For all the analysis methods, except zero-phase response, you can access them from the Analysis menu, the Analysis Parameters dialog box from the context menu, or by using the toolbar buttons. For zero-phase, right-click the y-axis of the plot and select Zero-phase from the context menu.

For example, to look at the filter's magnitude response, select the Magnitude Response button on the toolbar.

You can also overlay the filter specifications on the Magnitude plot by selecting View > Specification Mask.

Using Data Markers

You can click the response to add plot data markers that display information about particular points on the response.

To move a data marker, grab its black square at the corner of the marker. Dragging the marker with your mouse changes the Frequency and Magnitude values.

To change the properties of a data marker, right-click the marker to display the properties menu:

Drawing Spectral Masks

To add spectral masks or rejection area lines to your magnitude plot, click View > User-defined Spectral Mask.

The mask is defined by a frequency vector and a magnitude vector. These vectors must be the same length.

The magnitude response below shows a spectral mask.

Changing the Sampling Frequency

To change the sampling frequency of your filter, right-click any filter response plot and select Sampling Frequency from the context menu.

To change the filter name, type the new name in Filter name. (In fvtool, if you have multiple filters, select the desired filter and then enter the new name.)

To change the sampling frequency, select the desired unit from Units and enter the sampling frequency in Fs. (For each filter in fvtool, you can specify a different sampling frequency or you can apply the sampling frequency to all filters.)

To save the displayed parameters as the default values to use when FDATool or FVTool is opened, click Save as Default.

To restore the default values, click Restore Original Defaults.

Displaying the Response in FVTool

To display the filter response characteristics in a separate window, select View > Filter Visualization Tool (available if any analysis, except the filter specifications, is in the display region) or click the Full View Analysis button:

This launches the Filter Visualization Tool (fvtool).

You can use this tool to annotate your design, view other filter characteristics, and print your filter response. You can link FDATool and FVTool so that changes made in FDATool are immediately reflected in FVTool. See fvtool for more information.

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS