+

Addition operator.

Syntax

R = a + b

Inputs

a
Any valid number.
Type: double | integer | char | string | logical | struct | cell
Dimension: scalar | string | vector | matrix
b
Any valid number.
Type: double | integer | char | string | logical | struct | cell
Dimension: scalar | string | vector | matrix

Outputs

R
The sum.

Examples

Scalar example:
3 + 5
R = 8
Matrix example:
R = [1:3;4:6] + [4,1,2;6,5,2]
R = [Matrix] 2 x 3
 5   3  5
10  10  8
Matrix and scalar example:
R = [1:3;4:6] + 3
R = [Matrix] 2 x 3
4  5  6
7  8  9