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)
I have a signal and I have a filter.
I converted the signal into frequency domain and now I need to filter it with my filter.
Converting the signal into frequency domain is easy, but how do I filter the signal now?
This is my signal:
freqs = [0.08, 0.2, 0.32, 0.4]; periods = 1./ freqs; t_max = 4 * periods(1); t = linspace(0, t_max, 50); signal = sin(2*pi*0.08*t) + sin(2*pi*0.2*t) + sin(2*pi*0.32*t) + sin(2*pi*0.4*t); % to find the fft of the signal N = 64; signal_spect = abs (fft(signal,N)); signal_spect = fftshift(signal_spect); F = [-N/2:N/2-1]/N;
now how do I filter the previous signal with my filter? I tried doing this fft(filter_2) but it didn't work out, it's probably a wrong approach, but I do not know what else to do
any help is appreicated