www.pudn.com > aft.rar > plot12_3.m



i=1;
   eval(['load run1', num2str(i)])
figure
   stem(mean(Wx,2),'k')
   set(gca,'ylim',[-1 1.7])
     set(gca,'xticklabel',[0 1 2 3 4 5 6 7 8 9 10])
   line([1 11],[0 0])

title('figure 12.3a')
box on
xlabel(' Number of iterations, n')


print -dps 12_3a
i=2;
 eval(['load run1', num2str(i)])
figure
   stem(mean(Wx,2),'k')
   set(gca,'ylim',[-1 1.7])
     set(gca,'xticklabel',[0:10])
   line([1 11],[0 0])
title('figure 12.3b')
xlabel(' Number of iterations, n')
print -dps 12_3b
box on
   i=3;
  eval(['load run1', num2str(i)])
figure
   stem(mean(Wx,2),'k')
    set(gca,'ylim',[-1 1.7])
     set(gca,'xticklabel',[0:10])
   line([1 11],[0 0])
title('figure 12.3c')
xlabel(' Number of iterations, n')
box on

print -dps 12_3c

 i=4;
 eval(['load run1', num2str(i)])
figure
   stem(mean(Wx,2),'k')
   set(gca,'ylim',[-1 1.7])
     set(gca,'xticklabel',[0:10])
   line([1 11],[0 0])
title('figure 12.3d')
xlabel(' Number of iterations, n')
box on
print -dps 12_3d