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!