Input array, specified as a scalar, vector, matrix, or multidimensional
array. Numeric 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 datetime array, then the other input also can be a date string
or a cell array containing date strings.

Input array, specified as a scalar, vector, matrix, or multidimensional
array. Numeric 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 datetime array, then the other input also can be a date string
or a cell array containing date strings.