$ 0 0 You can't compare a vector to a scalar. In fact - you can, but the result will be a vector consisting of zeros and ones which is invalid as condition in the if function.