## Forums Search for: Filter

## question on the usage of the m-file "filter"

Hi, Trying to use the M-file "filter" to filter out a high-freq signal from a composite signal. num,den gives the co-efficients...

Hi, Trying to use the M-file "filter" to filter out a high-freq signal from a composite signal. num,den gives the co-efficients of a Low-Pass filter with cut-off freq near 0.25*pi The filter works fine when the step_size variable is greater than 0.8 The

## Matched Filter

inHey Guys, how are you all doing? i have a project to do and im not sure if im doing it right .. the professor gave us a file...

Hey Guys, how are you all doing? i have a project to do and im not sure if im doing it right .. the professor gave us a file to filter by doing a matched filter .. i loaded the file .. then what i did for the matched filter is that i defined the impulse response

## Compensation filter

Dear all, I'm Andrea and this is my first post on DSPRelated. I have a trouble that I can't solve. I have a generic system whose output,...

Dear all, I'm Andrea and this is my first post on DSPRelated. I have a trouble that I can't solve. I have a generic system whose output, in the frequency domain, has a module proportional to the fourth power of angular frequency [ |.| proportional to w.^4 ]. I have to build a FIR filter that compensates this phenomena. So the filter is a sort of lowpass filter decaying with an inverse fou...

## Decimation Filter Specification Object

Hello, Thanks for a helpful forum. I have two questions. 1. I am trying to implement a simple FIR filter. All I do is sum 100 samples of the...

Hello, Thanks for a helpful forum. I have two questions. 1. I am trying to implement a simple FIR filter. All I do is sum 100 samples of the input to get the output. Y = X(100) + X(99)..........X(1). I want to create a filter object for this filter. The question is - Do I use a FORM I, or a FORM II structure, i.e, do I use dfilt.df1, or dfilt.df2 function in matlab? 2. I...

## State Variable Filter in DSP

Dear all, I am very new to DSP and I need to construct a High Pass, State Variable Filter. I have taken the filter strucuture from the...

Dear all, I am very new to DSP and I need to construct a High Pass, State Variable Filter. I have taken the filter strucuture from the following link: http://www.earlevel.com/Digital%20Audio/StateVar.html I have constructed the Filter in Simulink and it works fine. However I wish to model it as an m-file. I am having severe problems in devising the equation that will calculate the output...

## Halfband and FIR filter for decimation

Hi, I want to design a decimation filter for a Sigma-Delta modulator. The modulator input is 20Khz sinus signal. And this signal is oversampled...

Hi, I want to design a decimation filter for a Sigma-Delta modulator. The modulator input is 20Khz sinus signal. And this signal is oversampled to 2.5Mhz. So decimation ratio is about 64. First I designed a CIC filter which has a decimation ratio of 16. After a halfband filter and an FIR filter. So halfband filter output is 80 Khz, FIR filter output is 40 khz. Anyway, I want to design halfband ...

## Problem in design filter -- Is it possible to avoid the division operation?

inHi all, Currently, I am designing low-pass filter that will be implemented in mcu processor and the result filter response is...

Hi all, Currently, I am designing low-pass filter that will be implemented in mcu processor and the result filter response is like this: -6 -4 -2 -z + 3z - 3z + 1 h = --------------------------------------------------- -6 -5 -4 -3 -2 -1 z + 6z + 17z - 29z + 3

## Implementation of Linear phase IIR filter

inSir, Iam trying to implement Linear phase IIR filter. My problem is that i want to reset the state variable of the Elliptic...

Sir, Iam trying to implement Linear phase IIR filter. My problem is that i want to reset the state variable of the Elliptic lowpass filter i want your suggestions in doing that task. If anyone came across ftpsite of Linear phase iir filter source code please send me. Thanks in

## Problem in Bandpass filter, passband reappear after half sampling frequency

inHi all, I am beginner in digital filter design. Currently, I am designing a bandpass filter cut-off at 500hz and 1.8khz, with...

Hi all, I am beginner in digital filter design. Currently, I am designing a bandpass filter cut-off at 500hz and 1.8khz, with sampling frequency 6k Hz. I use butterworth filter with order 6 according to the specification. However, when I try to plot the signal, there is

## Filter design using Remez Exchange Algorithm

Hi I am new to filter design. I have to design Smith-Barnwell Filters for lengths N= 4,8,16,31,64.. using Remez Exchange Algorithm. ...

Hi I am new to filter design. I have to design Smith-Barnwell Filters for lengths N= 4,8,16,31,64.. using Remez Exchange Algorithm. These are the steps to design the filter (1) design an equiripple half-band filter using the Remez exchange (2) make the filter frequency response positive-definite (3) spectral factorization This i

## circular high pass filter

Hallo, I need help. I would like to do a 2D circular high pass filter using the matlab function FSPECIAL('DISK', RADIUS) but, this ...

Hallo, I need help. I would like to do a 2D circular high pass filter using the matlab function FSPECIAL('DISK', RADIUS) but, this function is a low pass filter really. How could I change from low to high pass filter using this function?. I tried to do this filter doing my ow

## filter and downsample

inHi, I designed a filter using remezord function. When I filtered the input first and downsampled later, the filter works fine. ...

Hi, I designed a filter using remezord function. When I filtered the input first and downsampled later, the filter works fine. out2a=filter(h1,1,out1a); out2b=downsample(out2a,4); But when I downsampled first and then fitlered it later the output is incorrect. out2a

## How to inverse a FIR Filter using Matlab

Hi Everybody Im new here und i have a question from my Bachelorthesis In a Matlab system ,I have the estimated transfer function from the...

Hi Everybody Im new here und i have a question from my Bachelorthesis In a Matlab system ,I have the estimated transfer function from the channel, simply ch_est (in frequency domain), and that is a 64x1 Matrix You can say that the channel is a FIR Filter with finite impulse response. I have heard that, the inversion of a FIR Filter is always a IIR Filter, with infinite impulse response...

## Decimation filter magnitude response.

inI designed a CIC decimation filter, and am trying to plot its frequency response. Given below are the specifications of the filter. Sampling...

I designed a CIC decimation filter, and am trying to plot its frequency response. Given below are the specifications of the filter. Sampling Freq fclk: 1.4MHz Decimation D: 100 Input bits: 3 Output bits: 24 Order: 3 Question: What is the proper way to plot the magnitude the freq response of the filter? I did the following: If I send in 102400 samples into the filter, I get 1...

## question for filter implementation

hi guys, This is nasim, i am working as a DSP engg. in chennai ( india ). My work is to convert many matlab functions in C. just like linkage,...

hi guys, This is nasim, i am working as a DSP engg. in chennai ( india ). My work is to convert many matlab functions in C. just like linkage, cluster and to implement filter in C. Here, i am facing a problem in implementation filter. basically i am not able to convert the "filtfilt" function in C. bcos of "filter" function that is used in "filtfilt'. In matlab filter

## sampling freq for combined filter

inHi, Can anybody please tell me how to set up the sampling freq for a combined filters. The sampling freq for the input signal to...

Hi, Can anybody please tell me how to set up the sampling freq for a combined filters. The sampling freq for the input signal to the first filter h1 is 1.5Mhz, the output of the first filter is then downsampled to 96khz and feed into the second filter h2. h12 is the convolution

## filter constants

In the following Matlab routine: == %*********************************************** % BandPass...

In the following Matlab routine: == %*********************************************** % BandPass Filter %*********************************************** Wn = [1.5, 9]/(Fs/2); [b,a] = ellip(6,0.1,40,Wn); data = filter(b,a,fr_in); %*********************************************** %******************************************* % Plot the rms of the compressed data %*********************...

## Re: For Loop Execution

--- bakoguz <> wrote: > I have a problem of for loops. > I saw the messages about them but it did not help > me. > I want to...

--- bakoguz <> wrote: > I have a problem of for loops. > I saw the messages about them but it did not help > me. > I want to filter my matrix(actually an image) by a > filter > and I want to convolve(2D) my filter with my image. > If I use

## Unknown Filter Type

inHi, I may have inadvertly posted this twice. If so, I apologize. I've "inherited" the following filter: Yn = Yn-1...

Hi, I may have inadvertly posted this twice. If so, I apologize. I've "inherited" the following filter: Yn = Yn-1 + C(Xn-Xn-1)^2 - C(Xn-Xn-1)(Yn-1) Where Yi are outputs Xi are inputs C is a constant The filter perfo

## digital filters

Hi all, I have written a digital filter (quite simple and generic) as a*s^2+b*s+c ___________ d*s^2+e*s+f The...

Hi all, I have written a digital filter (quite simple and generic) as a*s^2+b*s+c ___________ d*s^2+e*s+f The filter discretized using Tusting. The code is verified and seems to be fine. Now, if have the filter K*S _____________