problems with function "rcosdesign"

9 visualizaciones (últimos 30 días)
yongchao du
yongchao du el 13 de Jun. de 2020
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"?

Respuestas (0)

Categorías

Más información sobre Measurements and Feature Extraction en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by