Input Arguments

A — Input arrayscalar | vector | matrix | multidimensional 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.

B — Input arrayscalar | vector | matrix | multidimensional 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.

This website uses cookies to improve your user experience, personalize content and ads, and analyze website traffic. By continuing to use this website, you consent to our use of cookies. Please see our Privacy Policy to learn more about cookies and how to change your settings.