Frequency Shift property of FFT
Afficher commentaires plus anciens
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 commentaires
Sulaymon Eshkabilov
le 26 Mai 2019
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
le 26 Mai 2019
Réponses (1)
Sk Group
le 27 Oct 2021
0 votes
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/
Catégories
En savoir plus sur Get Started with Signal Processing Toolbox dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
