1. Basic mathematical functions commonly used in MATLAB
ABS (x): absolute value of a pure volume or the length of a vector
Angle (z): Phase Angle)
SQRT (x): Square
Real (z): real part of the Plural Z
Imag (z): Virtual Part Of The Plural Z
Conj (z): the combination of the complex Z.
Round (x): returns the nearest integer.
Fix (x): whether positive or negative, remove the decimal point to the nearest integer.
Floor (x): floor function, that is, place a positive decimal number to the nearest integer.
Ceil (x): ceiling function, that is, adding a positive decimal to the nearest integer
Rat (x): converts a real number X into a score representation.
Rats (x): converts a real number X into multiple scores.
Sign (x): SIGNUM function ).
When x <0, sign (x) =-1;
When x = 0, sign (x) = 0;
When x> 0, sign (x) = 1.
REM (x, y): returns the remainder of X divided by Y.
Gcd (x, y): The maximum public factor of integer x and y
LCM (x, y): Minimum Public multiple of integer x and y
Exp (x): Natural Index
Pow2 (x): 2 Index
Log (x): The base-e logarithm, that is, the natural logarithm or
Log2 (x): base 2 logarithm
Log10 (x): Base-10 logarithm
Ii. trigonometric functions commonly used in MATLAB
Sin (x): sine function
Cos (x): returns the remainder function.
Tan (x): tangent function
Asin (x): arcsin Function
ACOs (x): returns the returns string function.
Atan (x): returns the arc tangent function.
Atan2 (x, y): arctangent function of four quadrants
Sinh (x): returns the sine of a number.
Cosh (x): returns a function that surpasses the remainder.
Tanh (x): returns the tangent of a given number.
Asinh (x): returns the arcwise sine function.
Acossh (x): returns an exclusive Chord function.
Atanh (x): returns the inverse tangent of a given number.
3. Common functions applicable to vectors include:
Min (x): minimum value of the element of vector x
Max (x): the maximum value of the element of vector x
Mean (x): average value of elements in vector x
Median (x): Median of elements in vector x
STD (x): Standard deviation of elements in vector x
Diff (x): The difference between adjacent elements of vector x
Sort (x): sorts elements of vector X)
Length (x): number of elements in vector x
Norm (x): euclidean (Euclidean) Length of vector x
Sum (x): Sum of elements in vector x
Prod (x): the total product of elements in vector x
Cumsum (x): Sum of the cumulative elements of vector x
Cumprod (x): the total product of cumulative elements of vector x
DOT (x, y): Inner Product of vector x and y
Cross (x, y): the outer product of the vectors x and y
Iv. Permanent constants of MATLAB
I or J: basic virtual number unit (I .e)
EPS: floating-point precision of the system
INF: infinite, such as 1/0
Nan or NAN: non-value (not a number), such as 0/0
Pi: circumference rate P (= 1415926 ...)
Realmax: the maximum value that the system can represent.
Realmin: Minimum value that the system can represent
Nargin: Number of input arguments of the Function
Nargin: Number of output arguments of a function
5. Basic plot functions of MATLAB
Plot: the X and Y axes are linear scales (linear scale)
Loglog: logarithmic scale)
Semilogx: the X axis is a logarithm scale, and the Y axis is a linear scale.
Semilogy: the X axis is a linear scale, and the Y axis is a logarithm scale.
Vi. Parameter Values of the plot Function
Character Color character line type
Y yellow. Dot
K black o circle
W white X
B blue ++
G green **
R red-solid line
C bright blue: dot line
M manganese purple-. dotted line
-- Dotted line
VII. Annotations
Xlabel ('input value'); % x axis Annotation
Ylabel ('function value'); % Y axis Annotation
Title ('two trigonometric Functions '); % graphic title
Legend ('y = sin (x) ', 'y = cos (x)'); % graphical Annotation
Grid on; % display grid lines
VIII. Two-Dimensional drawing functions
Bar Chart
Errorbar image plus error range
Fplot more precise function graphics
Polar polar coordinate chart
Hist accumulative Graph
Rose polar coordinate accumulative chart
Stairs step chart
Stem needle chart
Fill solid graph
Feather chart
Compass compass chart
Quiver Vector Field