rectpulse() Rectangular pulse shaping

y = rectpulse (x, nsamp);

Rectangular pulse shaping is applied to x, that is, each symbol in x is repeated nsamp times to form output y.

The function processes the column vector, repeating each element of the column vector nsamp times on the column. If the input has multiple columns, then process each column separately.

nsamp = 4;	% number of samples per symbol
nsymb = 3;	% number of symbol
s = RandSteam('mt19937ar', 'Seed', 0);	% 只是给随机数一个新的随机方式
ch1 = randi(s, [0 1], nsymb, 1);
ch2 = [1:nsymb]';
x = [ch1 ch2];	% 把两个列向量ch1 ch2拼起来
y = rectpulse(x, nsamp);

Insert picture description here

Guess you like

Origin blog.csdn.net/Explore_OuO/article/details/108947411