-
Subtraction operator.
Syntax
R = A - B
Inputs
- A
- Type: double | integer | char | string | logical | struct | cell
- B
- Type: double | integer | char | string | logical | struct | cell
Outputs
- R
- The difference.
Examples
R = 5 - 2
R = 3
R = [1:3;4:6] - [4,1,2;6,5,2]
R = [Matrix] 2 x 3
-3 1 1
-2 0 4