Questions tagged [filter-design]

Fiter design is the process of designing a filter.

185 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
2answers
186 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 > ...
4
votes
0answers
305 views

Design Nonlinear (Arbitrary) Phase FIR Filter using Iterative Reweighted Least Squares (IRLS)?

How would you use the MATLAB function below to create a FIR filter with a custom magnitude and phase response? It is from the Statistical Modeling and Inference MATLAB Toolbox ...
3
votes
0answers
29 views

Are there any tools for generating fixed point filter implementations?

It's very easy to make a filter in Scipy or many other tools, but implementing this filter in fixed point in C or VHDL/Verilog is always a chore. I mean, in theory it's just a matter of adequately ...
3
votes
0answers
195 views

What is the meaning of a inner system/transfer function?

In an academic paper I'm currently reading [1], the notion of an inner system is central. It is defined as follows A (linear) system $G$ (with $m$ inputs and $p$ outputs) is called inner if it ...
3
votes
0answers
307 views

Least Squares Approximation for FIR Filter Design

Following this paper , I am trying to make a least-squares algorithm in MATLAB, but for type I (I know about firls()). ...
3
votes
0answers
357 views

Complex bandpass filter giving quadrature signal

I have found a technique detailed on page 34 & 35 of this thesis. In this, the author states a complex bandpass filter can be derived by first making a prototype real valued IIR filter, then ...
3
votes
0answers
2k views

Difference between state space and transfer function model response (in Simulink)

Why I get a different response from the same system (e.g. three phase inverter with LC filter) in state space form and in transfer function (Laplace) form when using the same PI controller values ($...
2
votes
1answer
57 views

Design causal FIR filter to approximate hilbert transform

I'm attempting to design an FIR filter that approximates the Hilbert transform in order to get a $90^{\circ}$ phase shift and unity gain. However, I'm having trouble adjusting the filter to make it ...
2
votes
0answers
38 views

Is it possible to create a causal filter with a positively-sloped phase response?

I am currently prototyping a set of noise-cancelling headphones that utilize active EQ to modify the noise-cancelling signal, allowing the user to modify the frequencies that they hear or don't hear. ...
2
votes
0answers
199 views

Practical implementation of IIR/biquad filters following non-textbook transfer function of real-wold analog filter

I am trying to program a DSP filter to study prototypes of loudspeaker filters, which will be implemented as passive analog circuits in the final speaker system. This process involves simulation of ...
2
votes
0answers
79 views

Using a Passive 1st Order RC filter to Extract DC Component

I am trying to extract the DC component out of a PWM signal produced by the MCU using a LPF. I understand that 1st order RC filter is looked upon as being amateurish because the gain in the passband ...
2
votes
2answers
410 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 ...
2
votes
1answer
214 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 ...
2
votes
2answers
122 views

Stable digital filter with leading zeroes

I'm looking construct a stable pole-only filter where the feedback coefficients start with a block of zeroes, i.e. \begin{align} a_0 &= 1\\ a_i &= 0, \textrm{ for}\ 1 \le i \lt k\\ a_i &\...
2
votes
0answers
308 views

Applying Jake's remez exchange algorithm for filter design

I have found C implementation for remez exchange algorithm(https://github.com/janovetz/remez-exchange/blob/master/remez.c) and I want to use this to implement a generic prototype lowpass filter. ...
2
votes
0answers
114 views

What is the reason for this 'linear “error”'

Here's MIM (Magnitude Invariance Method) thesis (press the "View PDF" to get the theis with MATLAB code in hands) and here's a plot showing the issue I'm trying to solve: Magnitude responses for one ...
2
votes
0answers
161 views

Digital filter for sharp impulse in data

I am looking for an algorithm or a filter to remove sharp peaks from my data. I am collecting raw data after every 1 second from an sensor through an ADC. The ADC has an internal FIR filter. I use ...
2
votes
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 ...
2
votes
0answers
70 views

Is there a tool for automatically converting filter implementation forms?

I am looking for alternate tools that will automatically convert filter implementation forms (or signal flow network diagrams in general) to simplest or alternate forms; for example for going between ...
2
votes
0answers
40 views

how to design wavelets from splines

Can any one tell me how to design wavelets from splines using matlab. whether we can make wavelets from higher order splines or only with B splines
2
votes
0answers
107 views

Can you apply an audio filter/effect to only part of an audio signal and not get audio glitches?

I'm entertaining the idea of making a music-creating application. I'm a total newb at signal processing. The question that concerns me most right now is, if I apply a filter/effect such as convolution,...
2
votes
0answers
121 views

How many different filters are needed for in an iterated filter bank?

I'm trying to implement an iterated filter bank as described in the Subband coding chapter of the Really Friendly Guide to Wavelets. However, the text seems to suggest that The advantage of this ...
2
votes
1answer
315 views

filter design for ECG

I would like to ask how to design a digital filter to remove $50$ Hz interference on an ECG signal. Do I need to use notch filter? Thanks.
2
votes
0answers
567 views

Doppler shift using PLL

I am trying to apply phase lock loop to calculate phase shift due to doppler effect and finally calculate the doppler frequency($\Delta f$). I am assuming that the received wave is of the form, $r(t) =...
2
votes
0answers
91 views

How to get translation and roation data using 6DOF MPU6150

I am trying to get the position data from an IMU 6 Degrees of Freedom (MPU-6150) board using an Arduino Uno. I am trying Jeff Rowberg’s example MPU6050_DMP6.ino that may be found here. This is the ...
2
votes
1answer
429 views

When does a Window function's sidelobe level become out of band attenuation?

Another question I'm struggling to answer by myself. For a Window function, say Blackman (response pictured), what is the out of band attenuation? If I'm designing a filter with out of band ...
1
vote
0answers
19 views

MATAB FILTER IMPLEMENTATION

I have a filter response in the $z$-domain. $$H_0(z) = 2 + 6z^{−1} + z^{−2} + 5z^{−3} + z^{−5}$$ How do I implement this filter on Matlab? I can do this if I have the coefficients but I do not know ...
1
vote
0answers
19 views

How to design a cosine filter for bpsk using liquid dsp?

I was trying to build a (B)PSK-63 modulator as my hobby project. Here is my code and the link to specs: How to modulate PSK63 with liquiddsp? Now it is working, but since I am using a NCO to shift the ...
1
vote
0answers
36 views

Number of multiplication operations needed in rational sampling rate change with IIR Butterworth filters

I am trying to get a general sense of how many multiplication operations are needed for a 4th-order Butterworth filter (IIR filter) with a rational sampling rate change. I am excluding any ...
1
vote
1answer
54 views

How to implement a series of second-order, digital state-variable filters in MATLAB?

How to implement a series of second-order, digital state-variable filters, using the high-pass output from each section to effect the low-pass to high-pass transformation in MATLAB? Hello, I am trying ...
1
vote
1answer
44 views

What is the best way of filtering EEG signal for the specific frequency band?

I have an EEG data with a sampling rate is 500 Hz. Actually, there are too many ways to filter EEG signals. However, the abundance of options is not valid for me. I have to use a causal, linear-phase ...
1
vote
1answer
76 views

Frequency conversion in IIR lowpass-to-lowpass transformation

We use $\ z^{-1} \xrightarrow{} \frac{z^{-1}-\alpha}{1-{\alpha}z^{-1}}$ and $ \alpha = \frac{\sin(\omega_c^{'}-\omega_c)/2}{\sin(\omega_c^{'}+\omega_c)/2}$ for a lowpass-to-lowpass frequency ...
1
vote
0answers
42 views

What could be the optimal filter given this situation?

I am using a camera and a Deep Neural Network to predict one angle. This network received as input the frame, and calculates the mean and the variance associated to the prediction (which is basically ...
1
vote
0answers
42 views

The size of an FIR filter for PDM-PCM conversion

I have been trying to understand how the conversion from PDM to PCM happens so that I could interface with a microphone. I have been doing some research online and I found that the most common way to ...
1
vote
0answers
25 views

Why filtic function does not work for a specific use?

And how can I solve this issue? I designed a filter via bilinear transformation in order to obtein a high-pass filter of Butterworth. When I want to set initial conditions with filtic function, it ...
1
vote
0answers
21 views

Why are state-space filters good for time-varying systems?

"The state-space filter representation is especially powerful for time-varying linear systems." Why is this the case? What is the explanation behind the claim?
1
vote
1answer
41 views

Is DFE equalizer always blind or can we use reference signal?

I have made a blind DFE Equalization, I mean decision directed . But I am not sure how to make an implementation based on reference signal known by receiver and emitter. In the back forward filter ...
1
vote
1answer
45 views

phase response of an analog filter

I am trying to understand the relation between phase response of an analog filter and its influence on the quality of a signal with PSK modulation. For example I want to design a BPF for HF ...
1
vote
1answer
68 views

Confused about filter's cutoff frequency in rational sampling rate converter

A interpolator which increase sampling rate by L times is followed by an anti-imaging filter, the filter is said to have a cutoff frequency of Fs/2L. Is Fs here is the frequency before or after ...
1
vote
0answers
22 views

Bandpass Experiment: Weird graph! amplitude mismatch?

Why is this generic BP filter seem to magnifying amplitudes when I run it at lower sample rates? The bass range seems to 32 times louder at 1275 Hz (44.1 kHz / 32) than at 44.1kHz? Here is a graph of ...
1
vote
0answers
23 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 ...
1
vote
0answers
68 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 ...
1
vote
0answers
129 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 ...
1
vote
0answers
106 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 ...
1
vote
0answers
38 views

Concept of scales in Gabor filter

I've been reading about Gabor filters, and there is a concept of scale. While I understand that Gabor features help in analyzing both the frequency and orientations of an image, what is the idea of ...
1
vote
1answer
454 views

Change duration/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 function in my ...
1
vote
0answers
51 views

Frequency warping while creating filter coefficients

If I have an audio signal at 16kHz with frequencies band-limited to 8kHz. I want to low-pass filter this signal such that fc=4000Hz. Meaning when I reconstruct the signal I do not want any content ...
1
vote
0answers
116 views

Generation of Noise-shape filter from Power Spectrum Density

This is my very first time in dealing with signal processing, so I am sorry if I will not use a rigorous terminology. I am dealing with some issues about noise modeling in matlab. I'm trying to ...
1
vote
0answers
53 views

How far can numerical differentiation be accurate for sinusoids?

Suppose you have samples of uniform interval of a sinusoidal signal that is some sum of sinusoids. Forget about aliasing, as the signal is bandlimited. If we have infinite number of samples at ...
1
vote
0answers
172 views

Issue with the Massberg Analog-Matched Low Pass Filter

Implemented the filter mentioned in title using Octave and couple sources Vicanek and Zeitlin (LPF.cpp). Got filter working otherwise but, ... when tested the responses against 'analog model' of the ...