Questions tagged [filter-design]

Fiter design is the process of designing a filter.

Filter by
Sorted by
Tagged with
0
votes
0answers
11 views

Are MATLAB function zp2tf() and tf2zp() are complementary or not?

I was under impression that given, pole, zero and gain the transfer function (filter coefficients b and a) is fixed. Therefore, ...
0
votes
1answer
49 views

How to smooth filter response?

I have a filter designed in matlab with the function cheby2( N, Rs, Ws, 'stop'). The filter would give nice frequency response with for a given parameter set when the filter order is 2 or 4 (N=4). But ...
0
votes
1answer
18 views

Bessel filters: linear passband phase characteristic only for low pass filters?

I've found a test (internet) from the contest to signal processing teacher and it has a question (true) or (false). I cant find any book or paper to argue this statement. Is it really true?
0
votes
0answers
36 views

FIR bandpass filter for complex baseband signals

I am DSP newbie and I need to apply a bandpass filter to the complex baseband signals of bandwidth 20MHz and sampling rate 61.44 MHz. Below is the octave code for the same and I have obtained ...
0
votes
1answer
27 views

How would I calculate the DC Gain for a Chebyshev Type 2 filter?

I'm currently working on an implementation of a Chebyshev Type 2 filter but the gain is all over the place when playing around with the order and ripple. I haven't found anything online but (as far as ...
0
votes
1answer
28 views

How to perform spectral inversion in the frequency domain to convert a low-pass filter into a high-pass filter?

To convert a linear-phase FIR low-pass filter into a high-pass filter with the same cut-off frequency, we can invert the sign of the low-pass filter's impulse response $h(n)$ and then add one to the ...
0
votes
1answer
163 views

Filtering on time or frequency domain?

I'm applying an ideal filter on the frequency domain. My code below: ...
1
vote
2answers
48 views

How would one design a (quasi) linear phase adaptive notch filter for a single complex tone?

While IIR notch filters are attractive, I need to retain phase linearity at the filter output. I imagine that it's possible to use a standard IIR notch filter: https://www.researchgate.net/...
0
votes
1answer
48 views

EEG Sampling, Which Order should cover my result?

I have EEG data sampling rate is 250 Hz and I want to band pass this data in ( 0.5-3 Hz & 3-8 Hz & 8-13 Hz & 13-30 Hz & 30-40 Hz). Currently, the data is in the frequency range of ...
1
vote
0answers
21 views

How to design a filter with smoothness regularisation?

I am rather new to the DSP topic. However, I would like to filter a signal with lowest error and highest smoothness. Until now, I was using tikhonov regularisation inside batch regression with some ...
4
votes
2answers
169 views

Filter design to realize Cauchy product

I come from Computer Science so please pardon for my possibly wrong terminology. I need to design a filter which has coefficients $$h_0, h_1, \ldots, h_n, \ldots \quad\text{such that}\quad h_0 > ...
20
votes
4answers
24k views

How many taps does an FIR filter need?

I am looking to design a set of FIR filters to implement a low pass filter. I am also trying to reduce the latency of the signal through the filter so I am wondering what the minimum number of taps I ...
0
votes
0answers
25 views

Can Kaiser's formula be used to estimate the filter length of an FIR filter for all windowing methods?

I came across this problem while designing a FIR filter for given $\omega_p = 0.4\pi$ and $\omega_s = 0.6\pi$ along with the minimum stop-band attenuation $\delta_s$. I have worked out some examples ...
2
votes
3answers
78 views

Matlab IIR cheby2 bandpass, problems with Magnitude

I am trying to implement an IIR bandpass in Matlab. There are two things I don't understand. But first of all, let me post the code. ...
0
votes
2answers
59 views

Parallel equalizer, working for boosts but not cuts

I am trying to replicate the behaviour of a parallel equalizer. The approach is to use a parallel sum of bandpass filters like so: $Response = 1 + bandpass1 * (gain1 - 1) + bandpass2 * (gain2 - 1) + ...
1
vote
1answer
203 views

Change durration/tempo of a .Wav file without introducing pops or pitch shift?

I am attempting to develop a similar function as Audacity's Effects>Change Tempo effect. Or more specifically: I am in need of a way to create a funciton in my ...
1
vote
2answers
2k views

highpass filter design in Matlab

I hope to design 1st order highpass filter from transfer function. In the example of 1st order lowpass filter, I first get the coefficients of numerator and denominator in the variable 'b' and 'a'. In ...
0
votes
1answer
186 views
1
vote
2answers
2k views

What is the difference between the sampling frequency of signal and sampling frequency of filter

I believe that there is no connection between the sampling frequency used for converting an analogue filter to digital filter and the one used to sample a signal that the filter will be used on. But I ...
0
votes
0answers
18 views

What is the meaning of these Fixed Point Properties e.g.CustomSectionInputDataType?

I was trying tom implement a Butterworth filter and i came across a example on Mathworks site which emphasizes to customize various terms related to the filter. Following are some of the terms i could ...
2
votes
1answer
155 views

How does a digital filter work?

To introduce my situation: I'm developing a digital synthesizer in a form of a C++ library, working with low level APIs like WASAPI, ASIO, ALSA etc. It's probably not very practical and I'm mostly "...
1
vote
0answers
32 views

Vary poles/zeros of digital IIR filter

Many applications that produce sound, such as software synthesizers, are able to apply a filter that varies with time, such as applying a low pass filter that varies with an LFO. I currently have a ...
0
votes
1answer
73 views

Low-Pass Filtering of not evenly sampled signal

I have a signal sampled unevenly over 1 million ns. the signal is sampled over 1GHZ clock and the samples are as the following: 0-100 ns - sample every 1 ns. 100-1000 ns - sample every 10 ns. 1000-...
0
votes
0answers
30 views

Interpolation FIR filter Remez design criteria

I want to upsample an audio signal by a factor of 8. The technique I was going to use was to upsample by zero stuffing and then interopolate using a low pass anti-aliasing FIR filter designed using ...
0
votes
1answer
37 views

Why does sampling frequency affect the filter results?

I have a big issue, basically my goal is to create a low-pass butterworth filter around 0-35Hz with a sampling frequency of 5000Hz. My Matlab code is ...
0
votes
1answer
256 views

Weighting function for output error IIR filter design

I noticed, when I try to fit filter coefficients to a given complex transfer function with the output error method, implemented for example in the MATLAB function ...
0
votes
2answers
255 views

Interpolated FIR filter group delay

I'm trying to design a digital low pass filter with a narrow transition band. My sampling rate is 25 kHz, the cut off frequency is 60 Hz & the transition band width is 4 Hz. I'm looking for about ...
20
votes
7answers
7k views

Where can I get an open source implementation of the Parks-McClellan optimal FIR filter design algorithm?

Background: Often times I am doing some sort of signal processing task that requires a unique filter. Usually at this point I go to MATLAB and generate a new unique filter using $\tt firpm()$. The ...
0
votes
2answers
35 views

Downsides of higher order filtfilt's

I understand that with a standard filter, higher order will yield sharper frequency selection at the cost of increased phase delay. However, with so-called zero-phase-distortion filters like that ...
0
votes
0answers
34 views

Avoiding transients during filtering: Padding or Gustafsson's method?

I'm pretty uneducated when it comes to filtering, more of a stats guy, but I have to bandpass some signals and after a bunch of reading today I understand that the ...
0
votes
0answers
16 views

Estimate peak bandwidth from adjacent STFT bins for notch filter

I am using STFT to extract a strong, frequency varying signal from a continuous set of digital samples. I am able to do this very successfully and am determining the peak bin using PSD and 50% overlap ...
1
vote
2answers
223 views

How to compare many bandpass filters (for their signal propogation delay)?

Let's say we have an audio signal sampled at 96 kHz, and we want to compare several bandpass filters to find the one with the lowest rectangular-envelope-propagation-delay (see graph below). The band ...
1
vote
1answer
31 views

FIR Filter Type - MATLAB

A question about using fir1/fir2/firpm to design FIR filters in MATLAB. The first parameter is the 'filter order'. For my filter design I pass in 250 as this argument. However, when looking at the ...
0
votes
1answer
27 views

MATLAB fir2 - npt and lap

This might not be the right place to ask this, but I'm hoping someone can explain two of the arguments in the MATLAB fir2 function. It is a function for designing ...
0
votes
1answer
65 views

Side Lobes in the Magnitude Response of a Low Pass FIR Filter

I have the impulse response (from the filter coefficients) of an FIR filter obtained from MATLAB's "interp" function using the command: [y, b] = interp(x, 5); % where b contains the interpolation ...
0
votes
1answer
118 views

Wavelets and bank filters

The wavelet transform has a problem as it gives poor time resolution for low frequencies and poor frequency resolution for high frequencies according to uncertainty conditions. This appears well ...
1
vote
1answer
232 views

Applying a filter kernel defined by a continuous equation in the frequency domain

I have a filter kernel $K(\omega)$ completely defined in the frequency domain as a continuous function of angular frequency $\omega$. I know $K(\omega)$ defined as a continuous mathematical equation. ...
0
votes
1answer
320 views

Biquad coefficients using Magnitude (or Phase) Invariance Mapping Method

I'm trying MIM (Magnitude Invariance Method) and PIM (Phase Invariance Method) for to improve biquad LPF response at low sampling rates. I'm looking some help and examples of usage if available. ...
2
votes
2answers
133 views

How would you interpret the pattern in this picture? (generated by re-sorting pixels based on their RGB value)

Was playing with some pictures and ran the ruby code below. The code reads an input image using the ImageMagick library, gets an array of pixels, re-sorts the pixels and then writes out an image with ...
1
vote
3answers
103 views

Reverse engineering a digital filter

I have 2 simultaneous signals that both are designed to measure eye movements. They are sampled at 250 Hz. We have 12 subject recordings. For 3 stable periods in each subject, we choose 256 points and ...
0
votes
0answers
32 views

Signal attenuates after interpolation

So I'm designing all my interpolation filters to have unity gain at 0 dB. This results on my output signal to have a small amplitude. I was reading how to fix this and found this post Interpolation ...
0
votes
2answers
49 views

Ripples in filter

What are the uses of ripples in the filter design. We try to design a filter with least ripples but sometimes we design a filter to have 2 or 3 ripples. Why is it so?
0
votes
1answer
378 views

python rewrite lfilter (iir) with for

It's a beginner question, but useful to users from python - signal.lfilter, I was using lfilter from Find reverse one pole ...
0
votes
2answers
2k views

Derivative filter in Python

In Alaa Kharbouch, Ali Shoeb, John Guttag, Sydney S. Cash, An algorithm for seizure onset detection using intracranial EEG, Epilepsy & Behavior, Volume 22, Supplement 1, 2011 (section 2.1, 3rd ...
5
votes
3answers
3k views

FIR filter design for complex signal

I have a complex signal generated by an impedance analyzer. What is the best approach for designing a low pass FIR filter for this? Is a real filter applied separately to the real and imaginary ...
1
vote
0answers
46 views

CIC compensation filter and total response

UPDATE: New plot with properly scaled CIC comp response. I'm studying about CIC filters for interpolation/decimation and I'm reading about CIC compensation filters due to CIC filters not having a ...
0
votes
1answer
305 views

Filtering White Noise to Generate Harmonic Signal

I have studied convolutions and filters a long time ago. Today, I am trying to review the basics using some notes of mine, but I am finding difficult to solve easy problems. Since I don't have ...
0
votes
1answer
47 views

Measure 3-D length using smart-phone's accelerometer

I'm wondering if we can measure 3-D length only by our smart-phone's accelerometer. And we all know these low cost IMUs are not accurate. You can model accelerometer's error this way: $$ a = f*a' + g ...
2
votes
1answer
153 views

Estimate smartphone accelerometer bias

I was planning to develop Android / iOS applications that enable users to measure 3D length using their smartphones. According to this question, you need to know at least the time-varying bias that ...
0
votes
1answer
224 views

Parameters of Butterworth filter that approximates the amplitude response of a Gaussian filter?

For a given narrowband Gaussian filter with a specific central frequency and filter width, I need corners of a bandpass Butterworth filter whose amplitude response is close enough to the Gaussian ...