Frequency Shift property of FFT
26 次查看(过去 30 天)
显示 更早的评论
Hello,
I am trying to implement DSB modulation in Matlab, but I am having trouble with the frequency shift of the original signal, and how to visualize it.
This is what I have so far, but I can´t visualize the frequency shift.
clc, clear all, close all;
load('data2.mat');
load('data1.mat');
data1=data1(23001:24000,1);
data2=data2(23001:24000,1);
hold on
[m n]=size(data1);
t=[1:m]*2*pi/m;
for j=1:m
exp_vect(j)=exp(-1i*16e3*t(j)); %Construct freq. shift vector
end
f_data1=highpass(data1,0.01); %Eliminate very low frequencies (freq 0)
f_data2=highpass(data2,0.01);
t_data1=hilbert(f_data1); %Hilbert filter of first signal
t_data2=data2-hilbert(f_data2); %Hilbert filter of second signal
fft_data1 = fft(f_data1);
hf_data1=t_data1.*exp_vect;
ffthf_data1=fft(hf_data1);
plot(abs(fftshift(fft_data1)));
plot(abs(fftshift(ffthf_data1)));
2 个评论
Sulaymon Eshkabilov
2019-5-26
Could you please provide your data (data1.mat and data2.mat) to simulate and test, and propose a corrected code for your problem?
回答(1 个)
Sk Group
2021-10-27
Frequency shifting Prove: DFT{x(n)e^(j(2*pi/N)nl = X(K-l)
For detailed post and complete code visit: https://www.swebllc.com/frequency-shifting-property-in-matlab- complete-prove-code-output/
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Get Started with Signal Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!