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.

Manually calculate DFT

Status
Not open for further replies.

derick007

Newbie level 5
Joined
Dec 2, 2015
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
76
Please find my attempt to manually calculate the dft of the Hann function.

I have built a model in MATLAB - Simulink in order to verify the results and included them in the attachment. As you can see the is a substantial difference ?

Apparently the amplitude at zero frequency/dc should be 1v, 1w, 0dB or 30dBw.

I cannot understand this as the HANN function in the time domain, clearly produces a dc amplitude of 0.5v, 0.25w, -6dB or 24dBw.

Any help at all would be very welcome.

I can email the original spreadsheet to help with the calculations.

Regards, Derek
 

Attachments

  • squarespectrumDFT9(1).pdf
    198.8 KB · Views: 53

I think your calculation for DC is correct. How did you get the Matlab results?
The DFT is not a low pass filter. Why should the amplitude at DC be 1V?
 

In my example of N=8,

X(1) = -1.92 -0.8i

|X(1)| = 2.08

|X(1)|/N = 0.26

POWER (w) = |X(1)|^2/N^2 = 0.0676 w = 30 + (10*log(0.0676)) = 18.3 dBm

My guess is Simulink's spectrum analyser does a similar conversion, but comes up with 23.979 dBm for a double sided spectrum and 26.99 dBm for single sided.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top