Home > Matching_SYM_LSM > src > 2D_LSM_62 > 2D_LSM_62_sym_Functions > show_main_convergence.m

show_main_convergence

PURPOSE ^

SYNOPSIS ^

function show_main_convergence(fig_conv,xa,est_xa,old_est_sigma_0,est_sigma_0,iter,old_cpu,cpu,sum_cpu)

DESCRIPTION ^

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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 %% show convergence
0006 %
0007 % wf 7/2020
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

Generated on Sun 19-Jul-2020 23:00:25 by m2html © 2005