Input array, specified as a scalar, vector, matrix, or multidimensional array. Numeric inputsAandBmust either be the same size or have sizes that are compatible (for example,Ais anM-by-Nmatrix andBis a scalar or1-by-Nrow vector). For more information, seeCompatible 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.
Data Types:single|double|int8|int16|int32|int64|uint8|uint16|uint32|uint64|logical|char|datetime|duration|calendarDuration Complex Number Support:Yes
Input array, specified as a scalar, vector, matrix, or multidimensional array. Numeric inputsAandBmust either be the same size or have sizes that are compatible (for example,Ais anM-by-Nmatrix andBis a scalar or1-by-Nrow vector). For more information, seeCompatible 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.
Data Types:single|double|int8|int16|int32|int64|uint8|uint16|uint32|uint64|logical|char|datetime|duration|calendarDuration Complex Number Support:Yes
Extended Capabilities
Tall Arrays Calculate with arrays that have more rows than fit in memory.
This function fully supports tall arrays. For more information, seeTall Arrays.
C/C++ Code Generation Generate C and C++ code using MATLAB® Coder™.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.