Phase and Frequency Error (SOLVED)
12 views (last 30 days)
Show older comments
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1186208/image.png)
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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1186018/image.png)
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"
0 Comments
Answers (0)
See Also
Categories
Find more on Spectral Measurements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!