- #1

btb4198

- 557

- 9

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

Last edited: