Home > src > main > matlab > var3d.m

var3d

PURPOSE ^

SYNOPSIS ^

function val = var3d( f )

DESCRIPTION ^

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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

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