How to convert from time domain to frequency domain?

I have this filter:
filter_2 = firceqrip(2,0.6,[0.05 0.03]);
I want to convert it to the frequency domain to multiply it by a signal (i.e filter in the frequency domain)

 Respuesta aceptada

Image Analyst
Image Analyst el 7 de Dic. de 2014
Call fft() or pwelch().

5 comentarios

MatlabGirl
MatlabGirl el 7 de Dic. de 2014
so I only do fft(filter_2,N) ??
Yeah, but why use N?
MatlabGirl
MatlabGirl el 7 de Dic. de 2014
I don't know, that's how we always do it.
Are you sure its fft(filter_2)
shouldn't we do fft(h) with h being the impulse response?
The purpose of what I am trying to do is filter the a signal in the frequency domain using filter_2 the signal is a group of sinusoids
But you're not filtering an impulse with filter_2 are you? You're filtering a signal with a filter, filter_2.
MatlabGirl
MatlabGirl el 7 de Dic. de 2014
I see. thank you :)

Iniciar sesión para comentar.

Más respuestas (0)

Preguntada:

el 7 de Dic. de 2014

Comentada:

el 7 de Dic. de 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by