Not sure why bsxfun wasn't working, but used a different approach to figure out which regional maxima (if any) are out of bounds.