FFT of Sampled data

조회 수: 1 (최근 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 CenterFile Exchange에서 Fourier Analysis and Filtering에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by