Phase and Frequency Error (SOLVED)
12 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spectral Measurements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!