• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 7. HomePNA > MATLAB Files

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)')


					  


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint