Performs a subtraction operation, or serves as an negative sign.
Syntax
|
Description
|
y = x - z;
|
Subtract z from x.
|
y = -x;
|
Negative
|
Examples
This example shows the usage of the "-" operator.
x=1:3;
y=2:4;
?z=x-y;
result:
-1
-1
-1
See Also
List of commands
,
*
,
/
,
+
,
-
,
^