Sign in

username:

password:



Not a member?

Search matlab



Search tips

Subscribe to matlab



matlab by Keywords

Atanh | Autocorrelation | Bandpass Filter | C++ | Conv | Database | Deconv | Excel | FFT | Filter | Filtering | FIR | Fourier Transfrom | FSK | Gaussian Noise | Haykin | IFFT | Image | Java | LFSR | LMS | LPC | MEX | OFDM | QPSK | Radix | Random | Sampling | Segmentation | Simulink | Visual Basic | Waveform | Wavelet

Discussion Groups

Discussion Groups | Matlab DSP | About Frequency and FFT ?

Technical discussion about Matlab and issues related to Digital Signal Processing.

  

Post a new Thread

About Frequency and FFT ? - aloha - Feb 20 13:06:00 2001



Hi!

I can get the correct frequency value from below code:

Fs = 100;
n = 1/Fs:1/Fs:2;
x = 0.8*sin(2*pi*10*n);
z = fft(x);
N = length(z);
z = abs(z(1:N/2+1));
freq = [0:N/2]/N*Fs;
stem(freq,z);grid;zoom on;

but, when I use fft(x,N) -- N=2^k, who can I get the correct frequency value? Thanks!




(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )