Home > bml > utils > bml_comavgref_matrix.m

bml_comavgref_matrix

PURPOSE ^

BML_COMAVGREF_MATRIX creates a common average referencing matrix

SYNOPSIS ^

function U=bml_comavgref_matrix(n,alpha)

DESCRIPTION ^

 BML_COMAVGREF_MATRIX creates a common average referencing matrix

 Use as 
   U = bml_comavgref_matrix(n,alpha)

 U = In - (alpha/n)*Jn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function U=bml_comavgref_matrix(n,alpha)
0002 
0003 % BML_COMAVGREF_MATRIX creates a common average referencing matrix
0004 %
0005 % Use as
0006 %   U = bml_comavgref_matrix(n,alpha)
0007 %
0008 % U = In - (alpha/n)*Jn
0009 
0010 if ~exist('alpha','var')
0011   alpha=1;
0012 end
0013 
0014 U = eye(n)-(alpha/n)*ones(n);

Generated on Tue 25-Sep-2018 10:08:19 by m2html © 2005