function z = bsxand(x, y) % bsxand(x, y) = bsxfun(@and, x, y); % Binary "Element-wise logical AND" operator applied element-wise to x and y. % Singleton dimensions are implicitly expanded to make x and y match in size. z = bsxfun(@and, x, y);