FFT of Sampled data

2 Ansichten (letzte 30 Tage)
Rica
Rica am 4 Jun. 2013
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...

Antworten (1)

Wayne King
Wayne King am 4 Jun. 2013
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);

Kategorien

Mehr zu Fourier Analysis and Filtering finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by