problems with function "rcosdesign"

hello, I was doing the pulse shaping with function "rcosdesign", but when I plotted the signal, the code is below:
rolloff = 0.35; % Rolloff factor
span = 6; % Filter span in symbols
sps = 100; % Samples per symbol
b = rcosdesign(rolloff, span, sps);
b2 = rcosfir(rolloff,span,sps,1);
d = 2*randi([0 1], 1000, 1) - 1;
x = upfirdn(d, b, sps);
x2 = upfirdn(d, b2, sps);
ax(1) = subplot(2,1,1);
plot(x); % signal with "rcosdesign" pulse shaping
ax(2) = subplot(2,1,2);
plot(x2); % signal with "rcosfir" pulse shaping
and it looked like this(figure above):
there were a lot of discontinuous points compared with singal filtered by old version function "rcosfir"(figure below). I was wondering if there is any bugs with the function "rcosdesign"?

回答(0 个)

类别

帮助中心File Exchange 中查找有关 MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by