Fortune Telling Collection - Fortune-telling birth date - Matlab matrix algorithm

Matlab matrix algorithm

Algebraic operation of matrix is divided into two operations in MATLAB: matrix operation and array operation, in which matrix operation is defined according to linear algebraic operation law; Array operations are performed element by element. The difference between them is mainly reflected in three operations: multiplication, division and multiplication. The list is as follows:

Nominal operator

Transpose the a' matrix and divide a/b by the right.

Add a +b matrix and divide a \ b to the left.

Subtract the a-b array and divide a./b by the right.

Take the negative-a array and divide it by a. \ b

Number times s * matrix times b

Matrix multiplication A*B array power A.^B

Multiply the matrix of array A.*B to find the inverse a (- 1).

Six, array function and matrix function

The array function f(A) performs the operation f on the elements of the array a (matrix or vector) one by one.

Array function table

Function name function name function energy

Sin () sine atanh () inverse hyperbolic tangent

Cosine cosine inverse hyperbolic cotangent

Tangent inverse hyperbolic secant

Inverse hyperbolic cotangent

Sec () secant fixed point () is rounded to zero.

Csc () cotangent ceil () rounds to positive infinity.

Asin () Arcsine Base () is rounded to negative infinity.

Acos () arccosine round () is rounded to an integer.

Atan () arctangent rem () takes the remainder after division.

Acot () anti-cotangent sign () sign function

Asec () arctangent abs () takes the absolute value.

Inverse cotangent angle () complex phase angle

Sinh () hyperbolic sine imag () complex imaginary part

Hyperbolic cosine real number complex real number part

Complex conjugate of tanh () hyperbolic tangent conj ()

Coth () hyperbolic cotangent log 10 () common logarithm

Sech () hyperbolic secant logarithm () natural logarithm

Csch () hyperbolic cotangent exp () Exp (based on e)

Asinh () Square Root of Inverse Hyperbolic Sine Square ()

Acosh () Multiplication of Inverse Hyperbolic Cosine Product (m: n) from M to N.

The following matrix functions have the same meanings as those in linear algebra.

Matrix function table

Function name function name function energy

Inv(A (a) Inverse rank of square matrix A (a) Rank of matrix A.

Trace of determinant value matrix a of square matrix a (a

Matrix index of two matrices of Expm(A) point (a, b)

Eig(A) eigenvalue logm(A) matrix logarithm ln(A)