7.3. MATLAB Files

7.3.1. Probability of Error Calculation

x=[0:0.01:100];
for i=100:1000
Pe(i)=0.01*sqrt(2/pi)*sum(exp(-0.5*x(i:10000).^2));
end

7.3.2. Squared Root Nyquist Filter

x=[-35:35]/7;
alp=0.5;
gx=(sin(pi*(1-alp)*x)+4*alp.*x.*cos(pi*(1+alp).*x))./(pi*x.*(1-(4*alp*x).^2));
gx(36)=(1-alp)+4*alp/pi;
figure(1)
plot(gx)
xlabel('Filter Coefficients')
[gf,w]=freqz(gx,1,100);
figure(2)
plot([1:100]/100*20e6, 20*log10(abs(gf)))
grid
xlabel('Frequency (Hz)')
ylabel('Magnitude (dB)')

7.3.3. Channel Capacity Calculation

 logh1=20*log10(abs(H1(1:1025))); logh2=20*log10(abs(H2(1:1025))); SNR1=logh1+140-72; SNR2=logh2+140-72; figure(4) plot(f,SNR1,f,SNR2) grid xlabel('Frequency (Hz)') ylabel('SNR (dB)') gtext('Loop #6') gtext('Loop #8') capci1=sum(log2(1+10.^(SNR1(204:512)/10)))*20e6/1025 ...

Get Home Network Basis: Transmission Environments and Wired/Wireless Protocols now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.