Professional Documents
Culture Documents
Roll-off factor
% Set roll-off factor to 0.2
rctFilt2 = comm.RaisedCosineTransmitFilter(...
'Shape', 'Normal', ...
'RolloffFactor', 0.2, ...
'FilterSpanInSymbols', Nsym, ...
'OutputSamplesPerSymbol', sampsPerSym);
% Normalize filter
b = coeffs(rctFilt2);
rctFilt2.Gain = 1/max(b.Numerator);
% Filter
yo1 = rctFilt2([x; zeros(Nsym/2,1)]);
% Correct for propagation delay by removing filter transients
yo1 = yo1(fltDelay*Fs+1:end);
% Plot data
stem(tx, x, 'kx'); hold on;
% Plot filtered data
plot(to, yo, 'b-',to, yo1, 'r-'); hold off;
% Set axes and labels
axis([0 25 -2 2]); xlabel('Time (ms)'); ylabel('Amplitude');
legend('Transmitted Data','beta = 0.5','beta = 0.2',...
'Location','southeast')
Computational cost
C1 = cost(rctFilt3);
C2 = cost(rcrFilt);
Outputs obtained
rctFilt = comm.RaisedCosineTransmitFilter with properties:
Shape: 'Normal'
RolloffFactor: 0.5000
FilterSpanInSymbols: 6
OutputSamplesPerSymbol: 8
Gain: 1