Create an array, A, and add a column vector to it. The vector is treated as though it is a matrix of the same size as A, so that each element in the vector is added to a row in A.

Input array, specified as a scalar, vector, matrix, or multidimensional
array. Numeric or string inputs A and B must
either be the same size or have sizes that are compatible (for example, A is
an M-by-N matrix and B is
a scalar or 1-by-N row vector).
For more information, see Compatible Array Sizes for Basic Operations.

Datetime, duration, and calendar duration arrays must be the
same size unless one is a scalar.

If one input is a datetime array, duration array,
or calendar duration array, then numeric values in the other input
are treated as a number of 24-hour days.

If one input is a string array, then the other input
can be a numeric, logical, character, string, or cell array.

Input array, specified as a scalar, vector, matrix, or multidimensional
array. Numeric or string inputs A and B must
either be the same size or have sizes that are compatible (for example, A is
an M-by-N matrix and B is
a scalar or 1-by-N row vector).
For more information, see Compatible Array Sizes for Basic Operations.

Datetime, duration, and calendar duration arrays must be the
same size unless one is a scalar.

If one input is a datetime array, duration array,
or calendar duration array, then numeric values in the other input
are treated as a number of 24-hour days.

If one input is a string array, then the other input
can be a numeric, logical, character, string, or cell array.