Main Content

Opérations arithmétiques

Addition, soustraction, multiplication, division, puissance, arrondi

Les fonctions arithmétiques comprennent des opérateurs permettant des opérations simples comme l’addition et la multiplication ainsi que des fonctions destinées à des calculs courants comme la somme, la somme glissante, les opérations modulo et l’arrondi.

Pour plus d’informations, consultez Array vs. Matrix Operations.


développer tout


+Add numbers, append strings
sumSum of array elements
cumsumCumulative sum
movsumMoving sum


diffDifferences and approximate derivatives


*Matrix multiplication
prodProduct of array elements
cumprodCumulative product
pagemtimesPage-wise matrix multiplication (depuis R2020b)
tensorprodTensor products between two tensors (depuis R2022a)


./Right array division
.\Left array division
/Solve systems of linear equations xA = B for x
\Solve systems of linear equations Ax = B for x
pagemldividePage-wise left matrix divide (depuis R2022a)
pagemrdividePage-wise right matrix divide (depuis R2022a)


.^Element-wise power
^Matrix power


.'Transposer un vecteur ou une matrice
'Complex conjugate transpose
pagetransposePage-wise transpose (depuis R2020b)
pagectransposePage-wise complex conjugate transpose (depuis R2020b)

Signe dans un tableau

uminusUnary minus
uplusUnary plus
modReste d’une division (opération modulo)
remRemainder after division
idivideInteger division with rounding option
ceilRound toward positive infinity
fixRound toward zero
floorArrondir vers l’infini négatif
roundRound to nearest decimal or integer
bsxfunApply element-wise operation to two arrays with implicit expansion enabled


  • 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.