 #1
 431
 5
Main Question or Discussion Point
so this is from math lab
x is a 2 kHz sinewave
>> n = 0:1023;
>> t = n/8000;
>> x = sin(2000*2*pi*t);
>> X = fft(x);
>> plot(n,abs(X));
I have uploaded the picture of the graph ...
but is it wrong
2000 is the only one that should have a real value right ?
x is a 2 kHz sinewave
>> n = 0:1023;
>> t = n/8000;
>> x = sin(2000*2*pi*t);
>> X = fft(x);
>> plot(n,abs(X));
I have uploaded the picture of the graph ...
but is it wrong
2000 is the only one that should have a real value right ?
Attachments

10.9 KB Views: 335
Last edited: