problems with function "rcosdesign"
Afficher commentaires plus anciens
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"?
Réponses (0)
Catégories
En savoir plus sur Frequency Transformations dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!