%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function vec = arrayBitor(data); function that does a bitor of the colums in data %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
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;