Home > reduc > flag > arrayBitor.m

arrayBitor

PURPOSE ^

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

SYNOPSIS ^

function vec = arrayBitor(data);

DESCRIPTION ^

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

  function vec = arrayBitor(data);


   function that does a bitor of the colums in data

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

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function vec = arrayBitor(data);
0002 
0003 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0004 %
0005 %  function vec = arrayBitor(data);
0006 %
0007 %
0008 %   function that does a bitor of the colums in data
0009 %
0010 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0011 
0012 vec = data(:,1);
0013 for m=2:size(data,2)
0014   vec = bitor(vec, data(:,m));
0015 end
0016 
0017 return;

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