Home > reduc > flag > arrayBitand.m

arrayBitand

PURPOSE ^

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

SYNOPSIS ^

function outvector = arrayBitand(inVector)

DESCRIPTION ^

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

  function outvector = arrayBitand(inVector)

  so not going to write this out.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function outvector = arrayBitand(inVector)
0002 
0003 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0004 %
0005 %  function outvector = arrayBitand(inVector)
0006 %
0007 %  so not going to write this out.
0008 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0009 
0010 outvector = inVector(1,:);
0011 for m=2:size(inVector,1)
0012   outvector = bitand(outvector, inVector(m,:));
0013 end
0014 
0015 return;

Generated on Sun 14-Jun-2015 17:12:45 by m2html © 2005