0001 function show_main_convergence(...
0002 fig_conv,xa,est_xa,old_est_sigma_0,est_sigma_0,iter,old_cpu,cpu,sum_cpu)
0003 col = ['r','g','b','c','m','y','k','b'];
0004
0005
0006
0007
0008
0009
0010 figure(fig_conv)
0011 hold on
0012 subplot(1,5,1)
0013 for u=1:4
0014 plot(iter,est_xa.x(u),['.',col(u)],'MarkerSize',12)
0015 plot([iter-1,iter],[xa(u),est_xa.x(u)],['-',col(u)],'LineWidth',2)
0016 end
0017 subplot(1,5,2)
0018 for u=5:6
0019 plot(iter,est_xa.x(u),['.',col(u)],'MarkerSize',12)
0020 plot([iter-1,iter],[xa(u),est_xa.x(u)],['-',col(u)],'LineWidth',2)
0021 end
0022 subplot(1,5,3)
0023 for u=7:8
0024 plot(iter,est_xa.x(u),['.',col(u)],'MarkerSize',12)
0025 plot([iter-1,iter],[xa(u),est_xa.x(u)],['-',col(u)],'LineWidth',2)
0026 end
0027 subplot(1,5,4)
0028 plot(iter,est_sigma_0,'.k','MarkerSize',12)
0029 plot([iter-1,iter],[old_est_sigma_0,est_sigma_0],'-k','LineWidth',2)
0030 title('sigma\_0')
0031
0032 subplot(1,5,5)
0033 plot(iter,cpu,'.k','MarkerSize',12)
0034 plot([iter-1,iter],[old_cpu,cpu],'-k','LineWidth',2)
0035 title(['CPU: ',num2str(sum_cpu)])
0036
0037
0038 disp(['sum_cpu = ',num2str(sum_cpu)]);
0039 end
0040