averageconnectivity

PURPOSE ^

AVERAGECONNECTIVITY - computes the average connectivity of a model

SYNOPSIS ^

function conn=averageconnectivity(md)

DESCRIPTION ^

AVERAGECONNECTIVITY - computes the average connectivity of a model

   Usage:
      connectivity=averageconnectivity(md);

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function conn=averageconnectivity(md)
0002 %AVERAGECONNECTIVITY - computes the average connectivity of a model
0003 %
0004 %   Usage:
0005 %      connectivity=averageconnectivity(md);
0006 
0007 nnz=0;
0008 for i=1:md.numberofgrids,
0009     nnz=nnz+length(find(md.elements==i));
0010 end
0011 conn=nnz/md.numberofgrids;

Generated on Sun 29-Mar-2009 20:22:55 by m2html © 2003