Next let's try a raised cosine (RC) pulse (升余弦)with 30% excess bandwidth. ) ]' n9 R; D* C$ {: r2 F7 r( b# BCopy the RC Pulse program called "rcpuls" on page 23 of the Anderson text into a file called "rcpuls.m". Or cut and paste from here...4 b: m" Z- n, p
function y = rcpuls(a,t)tau = 1; % Set the symbol timet = t + 10^(-7); % This avoids dividing by zerotpi = pi/tau; atpi = tpi*a;at = 4*a^2/tau^2;y = sin(tpi*t).*cos(atpi*t)./(tpi*t.*(1-at*t.^2));* W2 Q- s. n5 }7 h8 n C
Now create an RC pulse by entering the following at the Matlab prompt. + k' X w+ ~9 Srcpulse = rcpuls(.3,[-6:0.01:6]);