Home > SRC > PLOT_ADC.m

PLOT_ADC

PURPOSE ^

plot ADC

SYNOPSIS ^

function PLOT_ADC(ADC_cmpts,ADC_allcmpts,DIFF_cmpts,title_str)

DESCRIPTION ^

 plot ADC
 
 Input:
     1. ADC_cmpts
     2. ADC_allcmpts
     3. DIFF_cmpts
     4. title_str (BTPDE/HADC/STA)
     
 Output:
     1 figure for ADC of nexperi experiments of (BTPDE/HADC/STA)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function PLOT_ADC(ADC_cmpts,ADC_allcmpts,DIFF_cmpts,title_str)
0002 
0003 % plot ADC
0004 %
0005 % Input:
0006 %     1. ADC_cmpts
0007 %     2. ADC_allcmpts
0008 %     3. DIFF_cmpts
0009 %     4. title_str (BTPDE/HADC/STA)
0010 %
0011 % Output:
0012 %     1 figure for ADC of nexperi experiments of (BTPDE/HADC/STA)
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

Generated on Mon 28-Jan-2019 12:43:57 by m2html © 2005