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.

Beginner's question on DFT

Status
Not open for further replies.

ebuddy

Full Member level 3
Joined
May 15, 2007
Messages
177
Helped
35
Reputation
70
Reaction score
34
Trophy points
1,308
Activity points
2,372
Hi, I am learning DFT. When a continous signal gets sampled, we get as many sample points as we want. How many points do we need (N) to do DFT analysis? For my particular example, I have

t = 0:0.001:0.6;
x = sin(2*pi*50*t)+sin(2*pi*120*t);

So I get 601 samples. But what is the minimum N that is good enough to do DFT analysis?

Thanks.
 

It is better N to be in form of 2^k; so for example 512 is a good choise for your problem.

t = 0:0.001:0.6;
t=t[1:512];
x = sin(2*pi*50*t)+sin(2*pi*120*t);

then t and thus x has only 512 sample;
 

Thanks. How about 256 points? Will it be enough? Is the result different comparing to if I use 512 points? Thanks.
 

the signal in analog continous domain is x = sin(2*pi*50*t)+sin(2*pi*120*t); the frequency of sin(2*pi*50*t) is 50Hz, while sin(2*pi*120*t) is 120Hz. so the highest frequency harmonic of x is 120Hz.

as the sampling theory: Fs > 2fmax, the digital sampling rate is at least Fs =240Hz, so 256 point is Okay.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top