0001 function PLOT_GEOMETRY_INFO(cmpts_bdys_mat,OUT_cmpts_index,IN_cmpts_index,ECS_cmpts_index,...
0002 VOL_cmpts,SA_cmpts,SAu_cmpts)
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021 Ncmpt = length(VOL_cmpts);
0022 Nboundary = size(cmpts_bdys_mat,2);
0023
0024 figure;
0025 hold all;
0026 cmpts_bdys_mat_plot=zeros(size(cmpts_bdys_mat));
0027 cmpts_bdys_mat_plot(OUT_cmpts_index,:)=cmpts_bdys_mat(OUT_cmpts_index,:);
0028 spy(cmpts_bdys_mat_plot,'ko',10);
0029
0030
0031 cmpts_bdys_mat_plot(:,:)=0;
0032 cmpts_bdys_mat_plot(ECS_cmpts_index,:)=cmpts_bdys_mat(ECS_cmpts_index,:);
0033 spy(cmpts_bdys_mat_plot,'ks',10);
0034
0035 cmpts_bdys_mat_plot(:,:)=0;
0036 cmpts_bdys_mat_plot(IN_cmpts_index,:)=cmpts_bdys_mat(IN_cmpts_index,:);
0037 spy(cmpts_bdys_mat_plot,'kd',10);
0038
0039
0040 xlabel('iboundary'); ylabel('icmpt');
0041 title('Connections boundary-compartment');
0042 set(gca,'Ytick',[1:Ncmpt]);
0043 set(gca,'Xtick',[1:Nboundary]);
0044 grid on;
0045
0046 figure;
0047 hold on;
0048 bar(1:Ncmpt,VOL_cmpts,'b');
0049 bar(Ncmpt+1,sum(VOL_cmpts),'r');
0050 title('VOL\_cmpts');
0051 set(gca,'Xtick',[1:Ncmpt+1]);
0052 xlabel('icmpt (last: all cmpts) ');
0053 grid on;
0054
0055 figure;
0056 hold on;
0057 bar(1:Ncmpt,SA_cmpts,'b');
0058 bar(Ncmpt+1,sum(SA_cmpts),'r');
0059 title('Surface Area');
0060 set(gca,'Xtick',[1:Ncmpt+1]);
0061 xlabel('icmpt (last: all cmpts)');
0062 grid on;
0063
0064 figure;
0065 hold on;
0066 bar(1:Ncmpt,SAu_cmpts./VOL_cmpts','b');
0067 bar(Ncmpt+1,sum(SAu_cmpts)./sum(VOL_cmpts),'r');
0068 title('SAu\_cmpts/VOL\_cmpts');
0069 set(gca,'Xtick',[1:Ncmpt+1]);
0070 xlabel('icmpt (last: all cmpts)');
0071 grid on;