Next:
Postfix + and -
Up:
Unary + and -
Previous:
Unary + and -
Contents
Prefix
+
and
-
If
x
is a scalar or matrix, then
+x
is the same as
x
, where
-x
is a matrix of the same size as
x
, with each element being the negative of the corresponding element of
x
. For example
>> x = [1, 5; -5, 1] >> -x -1 -5 5 -1
oz 2009-12-22