Final comparison of techniques

To complete the comparison of the techniques, replace the line

semilogy([1:50],Elm-18,'r-',[1:50],Epclm-18,'b-'); %# Plot results on log scale
in your current version of ``sch.m'' with the code block
[Wcg1, Ecg1]=pccg(W,50,1); %# 50 iters from W of cg versions 1, 2, 3 ...
[Wcg2, Ecg2]=pccg(W,50,2);
[Wcg3, Ecg3]=pccg(W,50,3);
%# Plot results on log scale
its=[1:50];
semilogy(its,Elm-18,its,Epclm-18,its,Ecg1-18,its,Ecg2-18,its,Ecg3-18);
%# Set W to best result for plotting
W=Wcg3;
Be prepared to show your final plot to the grader.

Tomas Arias 2004-05-04