FFT of Sampled data

3 ビュー (過去 30 日間)
Rica
Rica 2013 年 6 月 4 日
Hi all I have a sampled data of the length 1024. the sampling frequency is 400kHz.
I want to split this data in two Vectors. One vector is for the even members and the other one for the even members of the vector.
For each on i want to make separetly an FFT.
Is now the sampling frequency 200 KHZ for each stream?
% Fs=400
NFFT = 2^nextpow2(length(data)); % Next power of 2 from length of y
I_fft = fft(data,NFFT)/length(data);
Q_fft=fft(data,NFFT)/length(data);
f = Fs/2*linspace(0,1,NFFT/2+1);
I wish you could help...

回答 (1 件)

Wayne King
Wayne King 2013 年 6 月 4 日
I'm assuming you meant "even and odd". Yes, the sampling frequency is 200 kHz for the downsampled by 2 data.
Fs = 400e3;
t = 0:1/Fs:1;
x = cos(2*pi*50e3*t);
xeven = x(1:2:end);
xodd = x(2:2:end);
xeven_dft = fft(xeven);
xodd_dft = fft(xodd);

カテゴリ

Help Center および File ExchangeDiscrete Fourier and Cosine Transforms についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by