netColor

PURPOSE ^

NETCOLOR return specific color corresponding network

SYNOPSIS ^

function [ c ] = netColor( networkName )

DESCRIPTION ^

 NETCOLOR return specific color corresponding network

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [ c ] = netColor( networkName )
0002 % NETCOLOR return specific color corresponding network
0003 
0004 %   ---------
0005 %   Yen-Nan Lin, NTHU, 2010-2014, Matlab 2012a
0006 
0007 switch networkName
0008     case 'CE'
0009         c = [1, 0, 0];
0010     case 'CX'
0011         c = [1, 0, 1];
0012     case 'RL'
0013         c = [0, 1, 0];
0014     case 'SW'
0015         c = [0, 0, 1];
0016     case 'ER'
0017         c = [0.95, 0.95, 0];
0018     case 'RandIoCE'
0019         c = [0.95, 0.95, 0];
0020     case 'SepIoCE'
0021         c = [0, 1, 0];
0022     case 'RevIoCE'
0023         c = [1, 0, 1];
0024     case 'DistSW'
0025         c = [0, 1, 1];
0026     case 'Provincial'
0027         c = [0, 0, 1];
0028     case 'Connector'
0029         c = [0, 0, 1];
0030     case 'Kinless'
0031         c = [0, 0, 1];
0032     otherwise
0033         error('No match networkName');
0034 end

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