|
From: nethaji anandhavalli on 16 Apr 2010 11:44 this is my signal: y=awgn(x,20,'measured'); %add white i need to pass this signal in high pass filter, this is high pass filter function: H = fdesign.highpass(1e3,1.1e3,0.5,1,(1e4/2)); my doubt is, since i need to pass this in highpass filter design, where should i mention that signal " y" in high pass filter function"H"....
From: Wayne King on 16 Apr 2010 12:08 "nethaji anandhavalli" <mydreamprojects(a)yahoo.com> wrote in message <hqa0k5$i58$1(a)fred.mathworks.com>... > this is my signal: > y=awgn(x,20,'measured'); %add white > > i need to pass this signal in high pass filter, > this is high pass filter function: > H = fdesign.highpass(1e3,1.1e3,0.5,1,(1e4/2)); > > > my doubt is, since i need to pass this in highpass filter design, where should i mention that signal " y" in high pass filter function"H".... Hi Nethaji, by using H = fdesign.highpass(1e3,1.1e3,0.5,1,(1e4/2)); You have just constructed your filter specifications. Then you need to invoke the design() method to actually design your filter. D = design(H); % gives you the default design method If you enter designmethods(H) You will see all the valid filter design methods for your specification. You can design your filter with any valid method by specifiying the method as a string. For example: D = design(H,'kaiser'); Then, use your filter object, D, with filter() on the data yfilt = filter(D,y); % y is your input data from above I suggest you look at your filter specification. The way you are specifying your filter, your stopband frequency is 1 kHz, your passband is 1.1 kHz, and then you only have 0.5 dB of stopband attenuation and 1 dB of passband ripple. I think you most likely want more stopband attenuation than 0.5 dB. Hope that helps, Wayne
|
Pages: 1 Prev: Errors and issues with NLINFIT Next: using vectors as indices |