# Documentation

### This is machine translation

Translated by
Mouse over text to see original. Click the button below to return to the English verison of the page.

라이선스가 부여된 사용자만 번역 문서를 볼 수 있습니다. 번역 문서를 보려면 로그인하십시오.

# 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 `movsum` Moving sum `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` Remainder after division (modulo operation) `rem` Remainder after division `round` Round to nearest decimal or integer
 `bsxfun` Apply element-wise operation to two arrays with implicit expansion enabled

## Topics

Array vs. Matrix Operations

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.

Compatible Array Sizes for Basic 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.

Operator Precedence

Precedence rules determine the order in which MATLAB evaluates an expression.

Floating-Point Numbers

MATLAB represents floating-point numbers in either double-precision or single-precision format. The default is double precision.

Integers

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.