Version:

Performs element-wise subtraction. minus(a,b) is equivalent to a-b. If one input is an integer type, the other input must be the same integer type or a double scalar type.

## Syntax

c = minus(a, b)

## a

Scalar or array of any dimension.

## b

Scalar or array of any dimension. If both a and b are arrays, b must be of the same size as a.

## c

a-b. Scalar or array of any dimension. The output data type is not the greater data type of the two inputs. For example, if one input is double precision and the other input is single precision floating point number, the output is a single type.