goPlotChConnectMat

PURPOSE ^

This script produces the figure 3. It shows channel connectivity matrixes

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

 This script produces the figure 3. It shows channel connectivity matrixes
 of several networks (C. Elegans neural network, small-world network,
 random network, Drosophila's CX network) in propagation level 0-3.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % This script produces the figure 3. It shows channel connectivity matrixes
0002 % of several networks (C. Elegans neural network, small-world network,
0003 % random network, Drosophila's CX network) in propagation level 0-3.
0004 
0005 %   ---------
0006 %   Yen-Nan Lin, NTHU, 2010-2014, Matlab 2012a
0007 
0008 close all;
0009 
0010 NUM_FIG_ROW = 4;
0011 NUM_FIG_COL = 4;
0012 FIG_SIZE = [0, 0, 1500, 1000];
0013 MAX_PLOT_LEVEL = 4;
0014 REDUCE_COLORBAR_WIDTH = 0.01;
0015 
0016 % setting of figure
0017 figure('outerPosition', FIG_SIZE, 'color', 'w');
0018 panelObj = panel();
0019 panelObj.pack('v', [7/8, -1], 'h', [1/25, -1]);
0020 panelObj(1, 2).pack(NUM_FIG_ROW - 1, NUM_FIG_COL);
0021 panelObj(2, 2).pack(1, NUM_FIG_COL);
0022 panelObj(1, 1).pack(NUM_FIG_ROW - 1, 1);
0023 panelObj(2, 1).pack(1);
0024 panelObj.fontsize = 15;
0025 panelObj.fontname = 'Arial';
0026 panelObj.fontweight = 'bold';
0027 panelObj.margin = [10 15 3 8];
0028 panelObj.de.margin = 3;
0029 
0030 % plot C. Elegans neural network
0031 for iLevel = 1:MAX_PLOT_LEVEL
0032     panelObj(1, 2, 1, iLevel).select();
0033     plotOpt.showXTick = false;
0034     if iLevel == 1
0035         plotOpt.showYTick = true;
0036     else
0037         plotOpt.showYTick = false;
0038     end
0039     myImagesc(ceNetwork.ChConnectMat{iLevel}, plotOpt);
0040     title(['Level ', int2str(iLevel - 1)]);
0041 end
0042 panelObj(1, 1, 1).ylabel('CE');
0043 
0044 % plot small-world neural network
0045 for iLevel = 1:MAX_PLOT_LEVEL
0046     panelObj(1, 2, 2, iLevel).select();
0047     plotOpt.showXTick = false;
0048     if iLevel == 1
0049         plotOpt.showYTick = true;
0050     else
0051         plotOpt.showYTick = false;
0052     end
0053     myImagesc(smallRingNet{1}.ChConnectMat{iLevel}, plotOpt);
0054 end
0055 panelObj(1, 1, 2).ylabel('SW');
0056 
0057 % plot random network
0058 for iLevel = 1:MAX_PLOT_LEVEL
0059     panelObj(1, 2, 3, iLevel).select();
0060     plotOpt.showXTick = true;
0061     if iLevel == 1
0062         plotOpt.showYTick = true;
0063     else
0064         plotOpt.showYTick = false;
0065     end
0066     myImagesc(randNetwork{1}.ChConnectMat{iLevel}, plotOpt);
0067 end
0068 panelObj(1, 1, 3).ylabel('ER');
0069 
0070 % plot Drosophila's PCB network
0071 for iLevel = 1:MAX_PLOT_LEVEL
0072     panelObj(2, 2, 1, iLevel).select();
0073     plotOpt.showXTick = true;
0074     if iLevel == 1
0075         plotOpt.showYTick = true;
0076     else
0077         plotOpt.showYTick = false;
0078     end
0079     myImagesc(cxNetwork.ChConnectMat{iLevel}, plotOpt);
0080 end
0081 panelObj(2, 1).ylabel('CX');
0082 
0083 panelObj(2, 2).xlabel('Output nodes');
0084 panelObj(1, 2).ylabel('Input nodes');

Generated on Thu 30-Jan-2014 00:00:07 by m2html © 2005