plus

Perform addition on a list of arguments from left to right.

Syntax

R = plus(x,y)

R = plus(x,y,...)

Inputs

x,y
Type: double | integer | char | string | logical | struct | cell
Dimension: scalar | vector | matrix

Outputs

R
The sum.

Examples

Scalar example:
R = plus(2,5)
R = 7
Matrix example:
R = plus([1:3;4:6],[4,1,2;6,5,2])
R = [Matrix] 2 x 3
 5   3  5
10  10  8