FFT of Sampled data
3 ビュー (過去 30 日間)
古いコメントを表示
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...
0 件のコメント
回答 (1 件)
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);
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!