MATLAB function reference [z]

Source: Internet
Author: User

Function Name function description
Addpath adds a search path rmpath to delete a search path
Demo run the Matlab demo program type to list. M Files
Doc loads hypertext document version to display the Matlab version
Help start online help what to list related files in the current directory
Lasterr displays the last message. whatsnew displays the new features of Matlab.
Lookfor keyword help which creates the directory where functions and files are located
Set or query the Matlab path

Appendix 1.2 commands for managing variables and workspaces
Function Name function description
Clear deletes variables in the memory and function pack to sort out the Workspace Memory
Disp display matrix and text save the variables in the Workspace
Length query vector dimension size query matrix dimension
Load loads data into the file who, whos lists the variable names in the Workspace

Appendix 1.3 file and operating system processing commands
Function Name function description
Cd change current working directory edit. M file
Delete and delete the file. Obtain the installation root directory of Matlab.
Diary runs the Matlab command to save the tempdir disk to obtain the cache directory of the system.
Dir lists the content of the current directory tempname to get a cache (temp) File
! Execute operating system commands

Annex 1.4 window control commands
Function Name function description
Echo: displays the output page of the MATLAB command more control command window in the file.
Format: Set the output format

Appendix 1.5 startup and Exit commands
Function Name function description
Start the main program, quit, and exit the MATLAB environment.
Startup MATLAB self-starting Program

 

Appendix 2 operator number and special character Appendix
2.1 operator number and special characters
Function Name function description
+ Add a continuation flag...
-Minus, Line Break (the result of this row is not displayed)
* Matrix multiplication; line break (the result of this row is displayed)
. * Vector multiplication % annotation mark
^ Multiplication of Matrix! Operating System Command Prompt
. ^ Vector multiplication matrix transpose
Kron matrix kron product. Vector transpose
\ Matrix left Division = value assignment
/Right division of matrix = equal relational operation
. \ Left division of vectors ~ = Relational operations
./Right Division of vectors <relational operation less
: Vector Generation or child array extraction <= relational operation: less than or equal
() Subscripts or parameter definitions> relational operations greater
[] Matrix generation> = relational operation greater than or equal
{} & Logical operation and
. Structure field identifier | logical operation or
. Vertex multiplication, often used together with other operators (such .\)~ Non-logical operations
Xor logical operations

 

Appendix 2.2 Logical Functions
Function Name function description
Whether the element used in the all test vector is true is * (a class of Functions) checks the vector state. * Indicates a definite function (isinf)
Any test vector whether there is a real element * isa checks whether the object is an object of A Class
Exist checks whether a variable or file defines logical to convert the number to the logical number.
Find to find the subscript of a non-zero element

 

Appendix 3 Language Structure and debugging
Appendix 3.1 Programming Language
Function Name function description
Builtin executes the built-in function of MATLAB to define global variables.
Eval checks the number of input and output parameters of the nargchk function consisting of MATLAB statements.
Feval executes the script MATLAB statement and file information specified by the string.
Function Matlab function definition keywords

Appendix 3.2 Control Process
Function Name function description
Statement of break interrupt loop execution if condition transfer statement
Case and switch combined to achieve multi-channel transfer default execution in otherwise multi-channel Transfer
The transfer statement return used by else and if returns the call function.
The transfer statement switch and case used by elseif and if are combined to implement multi-channel transfer.
End control statement block warning displays warning information
Error show error message while loop statement
For Loop statement

Appendix 3.3 interactive Input
Function Name function description
Input request input menu Generation
Keyboard start keyboard management pause execution

Appendix 3.4 Object-Oriented Programming
Function Name function description
Class generation object isa determines whether the object belongs to a certain category
Convert double type to double precision type superiorto establish class hierarchy
Inferiorto creates a class hierarchy. unit8 is converted to an 8-byte unsigned integer.
Inline creates an embedded object

Appendix 3.5 debugging
Function Name function description
Dbclear debug breakpoint dbstatus list all breakpoints
Dbcont debugging continues dbstep one-step execution
Dbdown changes local Workspace Memory dbstop settings debugging breakpoint
Dbmex start debugging of Mex files sbtype list. M Files with command line labels
Dbquit exit debugging mode dbup changes local workspace content
Dbstack list function call relationships

 

Appendix 4 basic matrix and matrix Processing
Appendix 4.1 basic Matrix
Function Name function description
The eye generates a unit array rand generates a random distribution matrix.
Linspace constructs a linear distribution vector randn to generate a normal distribution matrix
Logspace construction and other logarithm distribution vectors zeros generate zero matrix
Matrix where all elements generated by ones are 1: Generate Vector

Appendix 4.2 Special vectors and constants
Function Name function description
Ans default calculation result variable non-numeric constants are often obtained by 0/0 or Inf/Inf.
Number of parameter inputs in the Machine Type nargin function where the computer runs MATLAB
Number of output variables in the nargout Function
Flops floating point operation count PI circumference Rate
I complex unit realmax maximum floating point value
INF infinity realmin minimum floating point value
Inputname: optional parameter input in the varargin Function
Optional parameter output by the varargout function of the J complex unit

Appendix 4.3 Date and Time
Function Name function description
Calender calendar eomday calculation end of month
Clock etime Function
CPU time used by cputime now current date and time
Date tic start stopwatch Timer
Datenum date (numeric string format) TOC read stopwatch Timer
Datestr date (string format) weekday week Function
Datevoc date (separated by year, month, and day)

Annex 4.4 matrix Processing

Function Name function description
Cat vector join reshape changes the number of columns in the Matrix
Diag creates a diagonal matrix or obtains a diagonal vector. rot90 rotates the matrix 90 degrees.
Fliplr flipped the matrix element tril in the left and right directions to get the lower triangle of the matrix.
Flipud flipped the matrix element triu in the upper and lower directions to obtain the upper triangle of the matrix.
Repmat copy and arrange Matrix Functions

 

Appendix 5 Special Matrix
Function Name function description
Compan generation adjoint matrix invhilb generation inverse hilbert Matrix
Gallery generates some small test matrices magic generates magic Matrices
Hadamard generate hadamard matrix pascal generate pascal matrix
Hankel generates the hankel matrix toeplitz to generate the toeplitz matrix
Hilb generates the hilbert matrix wilkinson generates the wilkinson feature value test matrix.

Appendix 6 mathematical functions
Appendix 6.1 trigonometric Functions
Function Name function description
Sin/asin SINE/arcsin function SEC/ASEC forward cut/arcwise cut Function
Sinh/asinh hyperbolic sine/inverse hyperbolic sine function Sech/asech hyperbolic normal cut/inverse hyperbolic positive cut Function
Cos/ACOs cosine/arccosine function CSC/ACSC cosine cut/arccosine cut Function
Cosh/acsh hyperbolic cosine/inverse hyperbolic cosine function csch/acsch hyperbolic cosine cut/inverse hyperbolic cosine cut Function
Tan/atan tangent/arctangent function COT/acot cotangent/inverse cotangent Function
Tanh/atanh hyperbolic tangent/antihyperbolic tangent function coth/ACO hyperbolic cotangent/antihyperbolic cotangent Function
Arctangent function in four quadrants of atan2

Appendix 6.2 exponential functions
Function Name function description
Exp exponent function log10 common logarithm function
Log natural logarithm function sqrt square root Function

Appendix 6.3 plural Functions
Function Name function description
Abs absolute value function imag evaluate virtual function
Angle phase functions real truth functions
Conj Complex Function

Appendix 6.4 numerical processing
Function Name function description
Round the fix in the zero direction
Floor returns the integer rem of division in the-∞ direction.
Ceil integer sign Function in the direction of + ∞

Appendix 6.5 other special mathematical functions
Function Name function description
Airy function erfcx proportional complementarity Error Function
Besselh bessel function (hankel function) erfinv inverse Error Function
Bessili improved the first bessel function expint exponent integral function
Besselk's improved Second Class bessel function gamma Function
Besselj first-class bessel function gammainc incomplete gamma Function
Bessely second-class bessel function gammaln gamma logarithm function
Maximum beta function gcd
Betainc incomplete beta function lcm least public multiple
Beta1beta logarithm function log2 Split Floating Point Number
Elipj jakal elliptic function legende legendh adjoint function
Ellipke full elliptical integral pow2 base 2 scalar floating point number
ERF error function rat Rational Approximation
Erfc complementary error function rats rational output

 

Appendix 7 Coordinate Transformation
Function Name function description
From cart2pol flute coordinates to polar coordinates to pol2cart polar coordinates to Cartesian coordinates
Cart27d flute coordinate to Spherical Coordinate Transformation sph2cart spherical coordinate to flute Coordinate Transformation

 

Appendix 8 Matrix Functions
Appendix 8.1 Matrix Analysis
Function Name function description
Cond evaluate the condition number of the matrix rcond linpack reciprocal Condition Estimation
Det evaluate the determinant of the matrix rRef Implementation of the row-level Matrix
Demonstration of solving the equation using Norm's matrix norm rrefmovie Elimination Method
Null Right zero space subspace sub-space
Trace of Orth orthogonal space trace Matrix
Rank: rank the matrix.

Appendix 8.2 Linear Equation
Function Name function description
/, \ Linear equation solving nnls non-zero Least Squares
CHOl Cholesky Factorization pinv to obtain the pseudo-Inverse Matrix
Inv matrix for Inverse qr matrix QR decomposition
Lscov Least Squares qrdelete a row deleted in the QR decomposition
Lu triangle decomposition of the LU matrix qrinsert QR decomposition inserts a row

Annex 8.3 feature values and Singular Values
Function Name function description
Banlance improves feature value accuracy by using the balanced transformation qz QZ algorithm to calculate the matrix feature value
Conversion from cdf2rdf complex block diagonal arrays to real Block Diagonal arrays rdf2cdf real Block Diagonal arrays to complex block diagonal Arrays
Eig calculates the matrix feature value and feature vector schur Schur Decomposition
Using hess to calculate the svd Singular Value Decomposition of Hessenberg Matrix
Characteristic polynomials of poly matrix

Appendix 8.4 Matrix Functions
Function Name function description
Expm matrix exponent function logm matrix logarithm function
Funm matrix arbitrary function sqrtm matrix square root

 

Appendix 9 data analysis and Fourier transformation Functions
Appendix 9.1 basic operations
Function Name function description
Cumprod vector accumulation prod evaluate the product of each element in the vector
Cumsum vector accumulation sort sorts each element in the vector
Max evaluate the maximum element in the vector sortrows to sort the rows in the Matrix
Min evaluate the minimum element in the vector STD evaluate the standard deviation of each element in the vector
Mean evaluate the mean of each element in the vector sum of each element in the vector
Median calculates the numerical integral using the trapz trapezoid method, an intermediate element in the vector.

Appendix 9.2 differential computing
Function Name function description
Del2 discrete Laplace transformation gradient calculation
Diff difference in myopia Differentiation

Appendix 9.3 filtering and convolution
Function Name function description
Conv volume to polynomial multiplication filter one-dimensional Digital filter
Conv2 two-dimensional convolution filter2 two-dimensional Digital Filtering
Deconv factorization and polynomial Multiplication

Appendix 9.4 variance Processing
Function Name function description
Variance coef correlation coefficient calculation cov covariance Calculation

Appendix 9.5Fourier Transformation
Function Name function description
Abs absolute value function fftshift fft and fft2 output shuffling
Angle phase function ifft Discrete Fourier inverse transformation
Cplxpair re-ordering ifft2 Two-Dimensional Discrete Fourier inverse transformation based on the complex number Pairs
Fft Discrete Fourier Transform unwrap Phase Correction
Fft2 Two-Dimensional Discrete Fourier transformation reference

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.