%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function outvector = arrayBitand(inVector) so not going to write this out. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
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;