Skip to Main Content Skip to Search
Product Documentation

minus - Minus

Syntax

c = a-b
c = minus(a,b)

Description

c = a-b subtracts array b from array a and returns the result in c. Inputs a and b must have the same size unless one is a scalar value (1-by-1 matrix).

c = minus(a,b) is called for the syntax a-b when a or b is an object.

See Also

plus

  


» Learn more
» Download free kit
» Get trial software

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