Skip to Main Content Skip to Search
Product Documentation

uminus - Unary minus

Syntax

b = -a
b = uminus(a)

Description

b = -a negates the elements of array a and returns the result in array b.

b = uminus(a) is called for the syntax -a when a is an object.

See Also

uplus

  


» Learn more
» Download free kit
» Get trial software

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS