Frequency Shift property of FFT

조회 수: 34 (최근 30일)
Juan Heusser Killing
Juan Heusser Killing 2019년 5월 26일
답변: 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
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?
Juan Heusser Killing
Juan Heusser Killing 2019년 5월 26일
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