dim

Calculates the positive difference between x and y, that is, if x>y, returns x-y, otherwise returns 0. Depending on input, function can return scalar, vector or matrix

Arguments

  1. Real value x
  2. Real value y

Output

Max (x-y, 0)

Examples

dim