Azzera filtri
Azzera filtri

Phase and Frequency Error (SOLVED)

12 visualizzazioni (ultimi 30 giorni)
kale
kale il 8 Nov 2022
Modificato: kale il 8 Nov 2022
I receive a PAM signal "sig_received" and would like to add a phase and frequency errors to it, generating and plotting "sig_with_error".
I know from theory that the signal with phase and frequency errors has such a form: .. so I wrote it in matlab.
Nsym = 1000; % number of symbol
v = 0.1*fsym; % frequency error of 10%
theta = pi/10; % 18 degrees phase error
% Nc = 10 = number of samples per symbol
t = 1:Nc*Nsym
sig_with_error = sig_received*exp(1i.*(2*pi*v.*t+theta));
scatter(real(seq_rx_filt_error), imag(seq_rx_filt_error))
title('signal with frequency and phase error')
Here is the error:
Beyond the reasoning that could be wrong, I would also like to understand the problem of syntax ... maybe there is a need to transpose something.
Thanks!
Ok the problem was the size of vector "t" .. that must be equal to thsize of "sig_received"

Risposte (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by