Home > src > main > matlab > var2d.m

var2d

PURPOSE ^

SYNOPSIS ^

function val = var2d( f )

DESCRIPTION ^

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function val = var2d( f )
0002 
0003 sz = size(f);
0004 d1 = sz(1);
0005 d2 = sz(2);
0006 
0007 vec = [];
0008 for l1 = 0:d1-1
0009     for l2 = 0:d2-1
0010         vec = [vec f(l1+1,l2+1)];
0011     end
0012 end
0013 
0014 val = var(vec);
0015 end

Generated on Mon 24-Sep-2012 12:26:33 by m2html © 2005