hi, if i have a transfer function for my filter in frequency domain, how m able to convert this transfer function to filter coefficients in matlab(m-file)? any help will be greatly appreciated. regards This message was sent using the Comp.DSP web interface on www.DSPRelated.com
filter problem
Started by ●May 6, 2005
Reply by ●May 7, 20052005-05-07
Reply by ●May 7, 20052005-05-07
"elbib00" <elbib00@hotmail.com> wrote in message news:Y7idnbOSVrrjfuffRVn-oQ@giganews.com...> > hi, > > if i have a transfer function for my filter in frequency domain, how m > able to convert this transfer function to filter coefficients in > matlab(m-file)? > > any help will be greatly appreciated. > > regardsTo create *any* file of coefficients first requires that you have the coefficients. So, how do you convert a frequency response to a set of filter coefficients? Assuming it is an idealized response or one of unknown orgin: A filter design procedure perhaps? If you have the identical frequency response of an actual filter and it is periodic. Then an IFFT of the filter frequency response would give you the coefficients of a FIR filter Fred
Reply by ●May 8, 20052005-05-08
> >hi, > >if i have a transfer function for my filter in frequency domain, how m >able to convert this transfer function to filter coefficients in >matlab(m-file)? > >any help will be greatly appreciated. > >regards > > >This message was sent using the Comp.DSP web interface on >www.DSPRelated.com >One simple way is to perform an ifft (inverse fft). Next you will need to window the result by a dot product of your window of choice in the time domain. This will get you close to the answer you want. The windowing is key and may want to try a hanning window. This message was sent using the Comp.DSP web interface on www.DSPRelated.com
Reply by ●May 8, 20052005-05-08
michaelkre wrote:> > > >hi, > > > >if i have a transfer function for my filter in frequency domain, howm> >able to convert this transfer function to filter coefficients in > >matlab(m-file)? > > > >any help will be greatly appreciated. > > > >regards > > > > > >This message was sent using the Comp.DSP web interface on > >www.DSPRelated.com > > > > One simple way is to perform an ifft (inverse fft). Next you willneed to> window the result by a dot product of your window of choice in thetime> domain. This will get you close to the answer you want. Thewindowing is> key and may want to try a hanning window. > > > > > This message was sent using the Comp.DSP web interface on > www.DSPRelated.comIn general you will get complex coefficients if you do that. If a real valued filter is desired, the input to the IFFT must be conjugate-symmetric around DC. John