Questions tagged [filter-design]

Fiter design is the process of designing a filter.

1,077 questions
Filter by
Sorted by
Tagged with
181 views

How to get rid of discontinuities at the start of a signal caused by the filter

I'm processing an audio signal using an overlap add method.Everything at the block boundaries is fine. However I have a discontinuity at the very start of the first block and I'm not sure how to (or ...
614 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 ...
152 views

Why does Pre-warping work with a notch filter but not a low pass filter?

Hey guys a little bit of a continuation from a previous post I made here, I found the solution as why the pre-warping was not working at the time, However I was just playing around and found out pre ...
293 views

Pre-Warping is not working on bilinear transform

New here and I just wanna ask the question of what happens when your pre warping doesnt work on your bilinear transform? I am assuming my isnt working as part of my research I have read that the ...
47 views

How to simulate a signal of a particular frequency according to the number of points in a period of the signal?

I have one period data ($n$ points in total) of a signal. I want to generate a periodic signal with a total of $m$ points and corresponding signal frequency of $F$ according to this data. How do I do ...
36 views

Finding the coefficients of the block diagram

I was looking at the question from a textbook of mine and it doesn't make too much sense to me: Design a ﬁrst-order ﬁlter, linearly extrapolating the current and previous measurement. This is ...
471 views

the number of multiplications per second required by the system

Q1. Consider a system implementing a rational sampling rate change by 5/7: for this, we cascade upsampler by 5, a lowpass filter with cutoff frequency π/7 and a downsampler by 7. The lowpass filter is ...
235 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 ...
44 views

Kalman Filter: Difference between sensor input and control input

I recently saw a matlab sensor fusion example which combined IMU and GPS data for drone localization. What was surprising about it was that the IMU was used to predict future behavior of the system as ...
2k views

What are the advantages and disadvantages of Kalman filter compared with FIR, IIR and low pass filter to filter data with noise?

It is known that the Kalman filter can filter the data with noise. I also find it works well after using it compared with FIR, low pass filter,etc. Now, I have a couple of questions about the ...
39 views

Signal processing on hourly atmospheric temperature, wind speed and humidity data for solar panel maintenance

I am working on a machine learning problem, where i have to predict if a device connected with solar panel at a specific block has been damaged. I have many factors to consider, out of which ...
185 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 ...
99 views

How can we measure the quality of the FIR filter?

The process of designing filters includes too many parameters like bandwidth, transition, degree of attenuation in side-bands, phase delay, causality, the magnitude of ripples, and so on. First of all,...
352 views

IIR filter relationship between number of poles, order and second order sections

I have ported Iowa Hills Code Kit to a mcu to calculate IIR filter coefficients. They are used to initialize the CMSIS Biquad Cascade IIR Filters Using a Direct Form II Transposed Structure. Trying to ...
66 views

Decoder implementation

Im struggling to implement / build convolutional decoder . I've done implementation of FEC encoder which it's as shown in the photo below: So this is the encoder that I've implemented, and I want to ...
115 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 ...
143 views

Design RRC filter [closed]

I have designed a RRC filter, as below : ...
373 views

How does window length influence cut-off frequency of filter and group delay?

I'm attempting to interpret the following function. To my understanding, this aims to implement an FIR low-pass filter with a Nuttall window. Then, it filters the signal by a simple application of the ...
69 views

Design of Parks-McClellan Lowpass Filter

Can we design Parks-McClellan Lowpass Filter with only sampling frequency of 12KHz and cutoff frequency of 4KHz and order of 30? I went through Matlab help, where we need parameter like passband ...
85 views

How to find minimum length of a FIR symmetric filter if I am given DTFT

I am practising for upcoming exams and came across this question. Let $h[n]$ be an FIR filter such that $h[n] = 0$ when $|n| > M$ and $h[n] = h[−n]$. A plot of $H(e^{j\omega})$ (DTFT of $h[n]$) is ...
93 views

Filtering artefacts and filtering short signals

I have a signal from EEG sensors and I try to denoise it from AC frequencies. For that reason, I estimated PSD of my signal and found that 50 Hz and 100 Hz are likely to represent noise. I constructed ...
229 views

Resampling FIR coefficients

I have received from a client a 32-coefficient FIR filter running at 1 kHz. I would like to adapt the filter to a 24-coefficient FIR filter running at 750 Hz while preserving the 0-375 Hz frequency ...
2k views

Digital filter coefficients from low-pass to high-pass

Given I have coefficients a0, a1, a2, b1, and b2, defining the difference equation for a digital filter as: ...
37 views

Truncation of fractions

I am working on IIR filter design, I got filter coefficients, now I want to truncate the coefficients so as to perform scaling. let 0.2145678340000 be one of my coefficients. I want to truncate to 0....
120 views

Designing appropriate filter by choosing values for $A$ and $B$

Let $$y[n] - ABy[n-1] +A^2y[n-2] = x[n] - Bx[n-1] +x[n-2]$$ Where $A$ and $B$ are constants. Also there are two sounds which have $400$ hertz noise and the sampling rate is $8000$ samples/sec. The ...
167 views

What is the best to confirm that the output of a matched filter for a linear FM chirp is correct?

I have written a matched filter in matlab to compress a linear FM chirp signal and would like to confirm that the results of my range compression. My question is what is the best way to do this? I ...
195 views

Group delay plot of a Moving average filter

I am implementing the moving average filter in Matlab. Using fvtool on this filter, gave the following output curve, is this group delay curve correct? Edit: My confusion is regarding the values of ...
44 views

signed 2's complement of a negative number for Integer = 3 and Fraction = 9

I am working on signed 2's complement for my fractions coefficients. Below code can be used for positive inputs. However for a negative 2's complement when I added LSB with 1, then an error pops. I ...
261 views

Confusion calculating length of Kaiser window

I am reading Digital Signal Processing Using Matlab by Ingle and Proakis (3rd ed.) In Chapter 7, Section 7.3, I am confused why he is adding 1 to main lobe width for calculating length of window. I ...
42 views

criteria for choosing a window for filter design? [duplicate]

When choosing any of windows(Bartlett, Rectangular, Hamming etc) for filter design, one important specification of window is minimum stop band attenuation What can be other window specification(s) ...
144 views

Moving Average Filter's Magnitude Response

I am working on filtering of data using the Moving average filter in MATLAB. My data is recorded temperature values on the Y-axis and Time(in seconds) on the X-axis (I'm getting the magnitude response ...
84 views

I am trying to convert filter realisation from Direct form 1 to cascade using function provided from Digital signal processing by Proakis. I designed lowpass IIR filter and extracted numerator and ...
209 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 ...
44 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 ...
412 views

Relation between filter order and window length for FIR filter

In case of FIR filter design, is the following relation always applicable or there are other relations/formulas also? If window length is denoted by $M$ ,then filter order will be $M-1$
495 views

How to quantize filter coefficients to 10 bits

I am trying to learn digital filter design. One of the concept is quantization of filter coefficients. I used Designfilt to design an lowpass IIR filter and obtained coefficients. Now I want to ...
224 views

Confusions in windows based design of FIR filters?

I am reading the proakis book"DSP USING MATLAB 3rd Edition" In chap 7, article 7.3, i came across example 7.8,where i saw formulas for pass band ripple and stop band attenuation I have ...
35 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 ...
78 views

How to derive 2nd order Butterworth condition for the damping coefficient mathematically?

The magnitude of 2nd order low pass filter is given as $$|H(\omega)|^2= \frac{1}{(1-(\frac{\omega}{\omega_o})^2)^2+(\frac{2\zeta\omega}{\omega_o})^2}$$ Now in order to achieve maximally flat within ...
85 views

Calculation of gain at certain frequency in case of nth order IIR filter

There is this method for to set 0dB gain to be at wanted frequency (fc) (Octave/Matlab example for biquad LPF): ...
115 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 ...
97 views

Why i am not getting low pass output despite the fact that my code is for Low pass?

I have tried to make a function to implement Low pass filter using butter worth technique,and i have taken code from different places in article 8.3 of proakis book,"DSP Using Matlab 3rd Ed" ...
43 views

the best pre emphasis for MMSE equalizer

The system consists of multiple low-pass filter and noise, $h_1$, $h_2$, $h_3$, ..., $n_1$, $n_2$, $n_3$, ... At the transmitter, the power of signal is fixed; and at the receiver, MMSE equalizer is ...
111 views

Pole locations of Butterworth filter

I am reading Proakis book "DSP using Matlab", 3rd edition. I am reading chapter 8, section 8.3, p. 402, and I am confused regarding the equation of poles (roots of denominator of system ...
457 views

What is the proper formula for converting ordinary frequency to normalized edge frequency in matlab for use in filter design commands like cheby2 etc The wikipedia page shows three different formulas ...
253 views

3 dB bandwidth of a filter

I am solving one of the question from signal processing about calculating the 3dB bandwidth of the filter. But I am stuck once I got the magnitude response of the filter. Can someone help me with this?...
174 views

Confusion implementing chebyshev type 2 band pass filter in matlab

I want to design a band pass Chebyshev Type II filter using analog prototyping. The order of filter is 20 with a value of 60 dB stop band attenuation and 0.75 dB pass band ripple where, Pass band edge ...
142 views

How to use Octave ellip() coefficients for 3-band C++ crossover

I have been working on making a 3-band audio crossover in C++, with the goal of activating/deactivating a different device depending on whether the low, mid, or high range of the input is above a ...