logMatrix

PURPOSE ^

LOGMATRIX return logarithm of pathway number matrix adding a small value

SYNOPSIS ^

function [ chConnectMat ] = logMatrix( nPathMat, smallValue )

DESCRIPTION ^

 LOGMATRIX return logarithm of pathway number matrix adding a small value

   [ chConnectMat ] = logMatrix( nPathMat, smallValue )
   This function return logarithm of pathway number matrix adding a small
   value to prevent log10(0). The result is channel connectivity matrix.

   Input:
       nPathMat: pathway number matrix
       smallValue: small value to prevent log10(0), and default value is 0.1.

   Ouptut:
       chConnectMat: channel connectivity matrix

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [ chConnectMat ] = logMatrix( nPathMat, smallValue )
0002 % LOGMATRIX return logarithm of pathway number matrix adding a small value
0003 %
0004 %   [ chConnectMat ] = logMatrix( nPathMat, smallValue )
0005 %   This function return logarithm of pathway number matrix adding a small
0006 %   value to prevent log10(0). The result is channel connectivity matrix.
0007 %
0008 %   Input:
0009 %       nPathMat: pathway number matrix
0010 %       smallValue: small value to prevent log10(0), and default value is 0.1.
0011 %
0012 %   Ouptut:
0013 %       chConnectMat: channel connectivity matrix
0014 
0015 %    ---------
0016 %    Yen-Nan Lin, NTHU, 2010-2014, Matlab 2012a
0017 
0018 if ~exist('smallValue', 'var')
0019     smallValue = 0.1;
0020 end
0021 chConnectMat = log10(nPathMat + smallValue);
0022 end

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