Addition

The table below describes the Addition operator.

+ Scalar Row Vector Column Vector Matrix
Scalar Adds the two scalar values. Adds the scalar to each element in the row vector. The resulting vector is the same size as the original vector. Adds the scalar to each element in the column vector. The resulting vector is the same size as the original vector. Adds the scalar to each element in the matrix. The resulting vector is the same size as the original matrix.
Row Vector Adds the scalar to each element in the row vector. The resulting vector is the same size as the original vector. Requires vectors to be the same size. Adds each element in operand 1 to the corresponding element in operand 2. The resulting vector is the same size as the original vectors.    
Column Vector Adds the scalar to each element in the column vector. The resulting vector is the same size as the original vector.   Requires vectors to be the same size. Adds each element in operand 1 to the corresponding element in operand 2. The resulting vector is the same size as the original vectors.  
Matrix Adds the scalar to each element in the matrix. The resulting vector is the same size as the original matrix.     Requires matrices to be the same size. Adds each element in operand 1 to the corresponding element in operand 2. The resulting vector is the same size as the original matrices.

Examples

1+1
ans = 2 
3 + [2 5 2]
ans = [5 8 5] 
[2 5; 6 2] + [8 3; 6 7]
ans = [10 8; 12 9]

Invalid Example:

[5 4 2] + [4 3]