Basic Arithmetic

#Addition

  • + Add numbers, append strings
  • sum sum of array elements
  • cumsum cumulative sum
  • movsum moving sum

#Subtraction

  • - subtraction
  • diff difference and approximate derivative

#Multiplication

- - -
.* Multiplication
* Matrix multiplication
prod product of array elements
cumprod cumulative product
pagemtimes Matrix multiplication by page
tensorprod Tensor products between two tensors

#Division

- - -
./ Array right division
[.](https://www.mathworks.com/help/matlab/ref/ldivide.html) Array left division
/ Solve the system of linear equations xA = B about x
[](https://www.mathworks.com/help/matlab/ref/mldivide.html) Solve the system of linear equations Ax = B with respect to x

#Power

  • .^ Element-wise exponentiation
  • ^ matrix power

#Transpose

- - -
.' Transpose a vector or matrix
' complex conjugate transpose
pagetranspose Transpose by page
pagectranspose Complex conjugate transpose by page

#Array notation

Comments