matlab常用函数(Matlab function)
matlab常用函数(Matlab function)
1. Basic mathematical functions commonly used in MATLAB
Abs (x) : the absolute value of the scalar or the length of the vector
Angle (z) : Phase Angle of complex z
SQRT (x) : square
Real (z) : real part of complex z
Imag (z) : imaginary part of complex z
Conj (z) : complex conjugate of complex z
Round (x) : rounded to the nearest integer
Fix (x) : regardless of the positive and negative, the decimal to the nearest integer
Floor (x) : the floor function, that is, to give away the positive decimal to the nearest integer
Ceil (x) : the ceiling function, which is to add a positive decimal to the nearest integer
Rat (x) : the real x is the fraction representation
Rats (x) : transform real number x into multiple fractions
Sign (x) : Signum function.
When x is less than 0, sign (x) = -1;
When x is 0, sign (x) = 0;
When x > 0, sign (x) = 1.
Rem (x, y) : the remainder of x divided by y
GCD (x, y) : the greatest common factor of integer x and y
LCM (x, y) : the least common multiple of integer x and y
Exp (x) : natural index
Pow2 (x) : 2
Log of x: log base e, the natural log or
Log 2 of x: log base two
Log of 10 (x) : log base 10
2. MATLAB used trigonometric functions
Sine of x is the sine function
Cosine of x: cosine
Tangent of x: tangent function
Asin (x) : the inverse sine function
Acos (x) : the inverse cosine function
Atan (x) : inverse tangent function
Atan2 (x, y) : the four-quadrant inverse tangent function
Sinh (x) : beyond the sine function
Cosh (x) : beyond the residual string function
Tanh (x) : beyond the tangent function
Asinh (x) : the inverse sine function
Acosh (x) : invert the residual string function
Atanh (x) : inverse tangent function
3. Common functions applicable to vectors are:
Min (x) : the minimum value of the element of x
Max (x) : the maximum value of the element x
Mean (x) : the average of the elements of x
Median (x) : the median of the elements of the vector x
STD (x) : the standard deviation of the element of x
Diff