minus

Perform subtraction.

Syntax

R = minus(x,y)

Inputs

x,y
Type: double | integer | char | string | logical | struct | cell
Dimension: scalar | vector | matrix

Outputs

R
The difference.

Examples

Scalar example:
R = minus(5,2)
R = 3
Matrix minus example:
R = minus([1:3;4:6],[4,1,2;6,5,2])
R = [Matrix] 2 x 3
-3  1  1
-2  0  4