Documentation Center

  • Trial Software
  • Product Updates

Arithmetic

Addition, subtraction, multiplication, division, power, rounding

Functions

plus Addition
uplus Unary plus
minus Subtraction
uminus Unary minus
times Element-wise multiplication
rdivide Right array division
ldivide Left array division
power Element-wise power
mtimes Matrix Multiplication
mrdivide Solve systems of linear equations xA = B for x
mldivide Solve systems of linear equations Ax = B for x
mpower Matrix power
cumprod Cumulative product
cumsum Cumulative sum
diff Differences and Approximate Derivatives
prod Product of array elements
sum Sum of array elements
ceil Round toward positive infinity
fix Round toward zero
floor Round toward negative infinity
idivide Integer division with rounding option
mod Modulus after division
rem Remainder after division
round Round to nearest integer
Was this topic helpful?