Skip to Main Content Skip to Search
Product Documentation

plus - Plus

Syntax

c = a+b
c = plus(a,b)

Description

c = a+b adds arrays a and b 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). You can add a scalar value to any other value.

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

See Also

minus

  


Free MATLAB Interactive Kit

Explore how to use MATLAB to make advancements in engineering and science.


Download free kit

Trials Available

Try the latest version of MATLAB and other MathWorks products.


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