Fdatool Design Filter and its use in "reprint" matlab

Source: Internet
Author: User

Using Fdatool to design filter and use in MATLAB

This article describes the use of Fdatool design filter in MATLAB.

1. Type fdatool in MATLAB to run the filter Design and Analysis Tool. For specific use, see Signal processing toolbox->fdatool in MATLAB help.

2. Several issues to be noted in the Fdatool tool: (a) Fstop (band cutoff frequency) cannot be greater than or equal to the sampling frequency FS/2, which is determined by the way digital filter is designed. (b) The design of the filter is exported, there are two ways to export the filter either as filter coefficients variables or as a dfilt or mfilt filter Object Varia ble (See the signal processing toolbox->fdatool->exporting a Filter Design in MATLAB Help for more information.)

Export:

File---Export popup Export dialog box, select "Export as" as "Objects", "varable Names" can be changed, the default is HD.

3. (a) if the Dfilt or mfilt filter object variable is exported, you can convert the Dfilt filter object to a Transfer function form with [B, a] = TF (Hd) and then use D=filter (b,a,x); Filter. Where: filter is the default function, B, A is just designed transfer function parameters, X is the original acquisition signal, D is the filtered signal.  X=importdata (' E:\matlab_work\xy\bb\O6.txt '); N=length (x); % take length fs=4000; % Sample frequency t= (0:n-1)/fs; Output Hd; [B,A]=TF (HD);% Get Transfer function d=filter (B,A,X); Subplot (311); Plot (t,x); Title (' original signal ');  Xlabel (' t ');   Ylabel (' Y '); Grid on;

Fdatool Design Filter and its use in "reprint" matlab

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.