0001 function PLOT_ADC(ADC_cmpts,ADC_allcmpts,DIFF_cmpts,title_str)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 nexperi = length(ADC_allcmpts);
0015 Ncmpt = length(DIFF_cmpts);
0016
0017 figure;
0018 for iexperi = 1:nexperi
0019 subplot(nexperi,1,iexperi); hold on;
0020 bar(1:Ncmpt,[ADC_cmpts(:,iexperi)],'b');
0021 bar(Ncmpt+1,ADC_allcmpts(iexperi,1),'r');
0022 title([title_str,' Experi ',num2str(iexperi)]);
0023 set(gca,'ylim',[0,max(DIFF_cmpts)]);
0024 set(gca,'Ytick',linspace(0,max(DIFF_cmpts),6));
0025 xlabel('icmpt (last: all cmpts)');
0026 ylabel('ADC\_cmpts');
0027 grid on;
0028 end
0029
0030
0031