Frequency Shift property of FFT

26 次查看(过去 30 天)
Juan Heusser Killing
回答: Sk Group 2021-10-27
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
Could you please provide your data (data1.mat and data2.mat) to simulate and test, and propose a corrected code for your problem?
Juan Heusser Killing
Sure, Im sorry I did not include them the first time, thanks!

请先登录,再进行评论。

回答(1 个)

Sk Group
Sk Group 2021-10-27

类别

Help CenterFile 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!

Translated by