Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] Frequency sampling method

Status
Not open for further replies.

bubulescu

Member level 3
Joined
Sep 10, 2009
Messages
65
Helped
12
Reputation
24
Reaction score
12
Trophy points
1,288
Activity points
1,897
Hello

I tried implementing this in LTspice, but I don't seem to get good results. I am using for this the IDCT/IDST, and here are the results for wc=pi/2, 21st order, between a normal un-windowed sinc filter, V(fir), and a FS, V(x):



and the coefficients:



For this example in particular, I had to make them a type II, odd sampling (for FS), otherwise the differences would have been much bigger. This way, at least, I got the wc right.

Now, the question about this is must I make the IDCT on fixed, power of two number of samples or can I do it for x=0:M/2 ? I ask this because Octave gives a different answer, so I took a peak at its fir2.m and there it interpolates the frequency to the next power of two, then it does the IDFT and then it chooses every Mth point. But, the formula is a function of M, the order, at least as I can see it on Burrus' cnx.org collection: https://cnx.org/content/col10598/latest/ .

At any rate, the results so far seem to be the less attenuated versions of the "real" ones. Hopefully someone can shed some more light in this.

Anticipated thanks,
Vlad
 

I managed to solve it by print-screen-ing the images from the Burrus' collection and mine, from wxMaxima, and then comparing them with the Gimp. In his graphs he used the step trace to match the 0.5 value, not tas the original one, which was what confused me. It seems I'm doing alright as I did and that Octave also forces a minor transition-width, hence the higher attenuation.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top