1. Rounding functions and other numerical functions
fix------ round towards 0 fix(-3.2)=-3
floor------ rounds towards negative infinity floor(-3.2)=-4
ceil-------Round to positive infinity ceil(-3.2)=-3
round-------Round
rem(a,b) ------ Calculate the remainder of a/b
sign(x)------sign function sign(-3.2)=0 sign(3.2)=1
2. Functions related to vectors
mean(x): the mean of the elements of the vector x
std(x): standard deviation of x
diff(x) : difference between adjacent elements of vector x
norm(x): Euclidean length of vector x
3. Operation
Find the eigenvalues of the square matrix A: eig(A) ;
If the eigenvectors are obtained at the same time, the expression [X,V]=eig(A) is used ;
Note: [V,D]=eig(A): Find all the eigenvalues of matrix A to form a diagonal matrix D, and find the eigenvectors of A to form the column vector of V.