Arithmetic functions include operators for simple operations like addition and multiplication, as well as functions for common calculations like summation, moving sums, modulo operations, and rounding.
For more information, see Array vs. Matrix Operations.
|Product of array elements|
|Page-wise matrix multiplication|
|Right array division|
|Left array division|
|Solve systems of linear equations xA = B for x|
|Solve systems of linear equations Ax = B for x|
|Transpose vector or matrix|
|Complex conjugate transpose|
|Page-wise complex conjugate transpose|
Modulo Division and Rounding
Custom Binary Functions
Matrix operations follow the rules of linear algebra, and array operations
execute element by element operations and support multidimensional arrays. The
period character (
.) distinguishes the array operations from
the matrix operations.
Most binary operators and functions in MATLAB® support numeric arrays that have compatible sizes. Two inputs have compatible sizes if, for every dimension, the dimension sizes of the inputs are either the same or one of them is 1.
Precedence rules determine the order in which MATLAB evaluates an expression.
MATLAB represents floating-point numbers in either double-precision or single-precision format. The default is double precision.
MATLAB supports 1-, 2-, 4-, and 8-byte storage for integer data. If you use the smallest integer type that accommodates your data, you can save memory and program execution time.