필터 지우기
필터 지우기

Error generating a psk modulation

조회 수: 1 (최근 30일)
Rachana Aravind
Rachana Aravind 2019년 7월 4일
답변: Samatha Aleti 2019년 7월 30일
Hi,
I am trying this code
%%
% Set the random number generator to a known state to be able to regenerate
% the same frames every time the simulation is run
rng(123456)
% Random bits
d = randi([0 1],1024,1);
% BPSK modulation
syms = pskmod(d,2);
% Square-root raised cosine filter
filterCoeffs = rcosdesign(0.35,4,8);
tx = filter(filterCoeffs,1,upsample(syms,8));
% Channel
channel = helperModClassTestChannel(...
'SampleRate',1e8, ...
'SNR',20, ...
'PathDelays',[0 1.8 3.4] / 200e3, ...
'AveragePathGains',[0 -2 -10], ...
'KFactor',4, ...
'MaximumDopplerShift',4, ...
'MaximumClockOffset',5, ...
'CenterFrequency',900e6);
rx = channel(tx);
and getting the very last entry of the rx vector as Nan+NaNi
What is the reason? How to fix this problem?
Thanks for your help in advance.
  댓글 수: 2
KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 7월 4일
편집: KALYAN ACHARJYA 2019년 7월 4일
@Rachana Matlab version, you are using?
Hello Memeber, it may be helpful to check, the question belongs from here
Rachana Aravind
Rachana Aravind 2019년 7월 4일
version 2019a

댓글을 달려면 로그인하십시오.

채택된 답변

Samatha Aleti
Samatha Aleti 2019년 7월 30일
In the class HelperModClassTestChannel the timing drift is calculated based on the clock offset for the current frame and specified sampling rate. The output of sampling time drift is the values of input at the modified sampling rate. This tried to interpolate data out of input range, leading to a NAN value.
Hope this helps!

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 PSK에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by