matlab函数英文说明
- 格式:docx
- 大小:16.06 KB
- 文档页数:4
sin - Sine of argument in radiansThis MATLAB function returns thesine of the elements of X.rand - Uniformly distributed pseudorandom numbersThis MATLAB function returns a pseudorandom scalar drawn from the standard uniform distribution on the open interval (0,1).global - Declare variables as globalThis MATLAB function declares variables var1 ...sqrt - Square rootThis MATLAB function returns the square root of each element of the array X. title - Add title to current axesThis MATLAB function adds the title consisting of a string, str, at the top andin the center of the current axes.meshgrid - Rectangular grid in 2-D and 3-D spaceThis MATLAB function replicates the grid vectors xgv and ygv to produce a fullgrid.inv - Matrix inverseThis MATLAB function returns the inverse of the square matrix X.inf - InfinityThis MATLAB function returns the IEEE arithmetic representation for positiveinfinity.fix - Round toward zeroThis MATLAB function rounds the elements of A toward zero, resulting in an array of integers.ones - Create array of all onesThis MATLAB function returns the scalar 1.linspace - Generate linearly spaced vectorThis MATLAB function returns a row vector with 100 linearly spaced points in the interval [x1,x2].sort - Sort array elementsThis MATLAB function sorts the elements of A in ascending order along the first array dimension whose size does not equal 1.grid - Grid lines for 2-D and 3-D plotsThis MATLAB function adds major grid lines to the current axes.plot - 2-D line plotThis MATLAB function creates a 2-D line plot of the data in Y versus the corresponding values in X.If X and Y are both vectors, then they must have equal length.surf - 3-D shaded surface plotThis MATLAB function creates a three-dimensional shaded surface from the zcomponents in matrix Z, using x = 1:n and y = 1:m, where [m,n] = size(Z).ylabel - Label y-axisThis MATLAB function labels the y-axis of the current axes with the string, str. xlabel - Label x-axisThis MATLAB function labels the x-axis of the current axes with the textspecified by str.function - Declare function name, inputs, and outputsThis MATLAB function declares a function named myfun that accepts inputsx1,...,xM and returns outputs y1,...,yN.disp - Display text or arrayThis MATLAB function displays the contents of X without printing the variablename.num2str - Convert number to stringThis MATLAB function converts array A into a string representation str.continue - Pass control to next iteration of for or while loopThis MATLAB function temporarily interrupts the execution of a program loop,skipping any remaining statements in the body of the loop for the current pass. xlswrite - Write Microsoft Excel spreadsheet fileThis MATLAB function writes array A to the first worksheet in Excel file,filename, starting at cell A1.find - Find indices and values of nonzero elementsThis MATLAB function returns a vector containing the linear indices of eachnonzero element in array X.mesh - Mesh plotThis MATLAB function draws a wireframe mesh with color determined by Z, so color is proportional to surface height.polar - Polar coordinate plotThis MATLAB function creates a polar coordinate plot of the angle theta versusthe radius rho.round - Round to nearest decimal or integerThis MATLAB function rounds each element of X to the nearest integer.log - Natural logarithmThis MATLAB function returns the natural logarithm ln(x) of each element inarray X.input - Request user inputThis MATLAB function requests user input by displaying the prompt string on the screen.isprime - Determine which array elements are primeThis MATLAB function returns a logical array the same size as X.abs - Absolute value and complex magnitudeThis MATLAB function returns the absolute value of each element in array X.tan - Tangent of argument in radiansThis MATLAB function returns the tangent of each element of X.axis - Axis scaling and appearanceThis MATLAB function sets the limits for the x- and y-axis of the current axes.eye - Identity matrixThis MATLAB function returns the scalar, 1.varargin - Variable-length input argument listThis MATLAB function is an input variable in a function definition statementthat allows the function to accept any number of input arguments.nargin - Number of function input argumentsThis MATLAB function returns the number of input arguments passed in the call to the currently executing function.diag - Create diagonal matrix or get diagonal elements of matrixThis MATLAB function returns a square diagonal matrix with the elements ofvector v on the main diagonal.menu - Generate menu of choices for user inputThis MATLAB function displays the menu whose title is in the string variable'mtitle' and whose choices are string variables 'opt1', 'opt2', and so on.save - Save workspace variables to fileThis MATLAB function saves all variables from the current workspace in a MATLAB formatted binary file (MAT-file) called filename.addpath - Add folders to search pathThis MATLAB function adds the specified folders to the top of the search path. fprintf - Write data to text fileThis MATLAB function applies the formatSpec to all elements of arrays A1,...Anin column order, and writes the data to a text file.sprintf - Format data into stringThis MATLAB function formats the data in arrays A1,...,An according toformatSpec in column order, and returns the results to string str.figure - Create figure windowThis MATLAB function creates a new figure window using default property values. sign - Signum functionThis MATLAB function returns an array Y the same size as X, where each element of Y is:var - VarianceThis MATLAB function returns the variance of X for vectors.rem - Remainder after divisionThis MATLAB function returns the remainder after division of X by Y.sound - Convert matrix of signal data to soundThis MATLAB function sends audio signal y to the speaker at the default sample rate of 8192 hertz.exit - Terminate MATLAB program (same as quit)This MATLAB function terminates the current session of MATLAB after runningfinish.m, if the file finish.m exists.tic - Start stopwatch timerThis MATLAB function starts a stopwatch timer to measure performance.toc - Read elapsed time from stopwatchThis MATLAB function reads the elapsed time from the stopwatch timer started by the tic function.floor - Round toward negative infinityThis MATLAB function rounds each element of X to the nearest integer less than or equal to that element.magic - Magic squareThis MATLAB function returns an n-by-n matrix constructed from the integers 1through n^2 with equal row and column sums.ginput - Graphical input from mouse or cursorThis MATLAB function enables you to identify n points from the current axes and returns their x- and y-coordinates in the x and y column vectors.uiimport - Import data interactivelyThis MATLAB function opens a dialog to interactively load data from a file orthe clipboard.dot - Dot productThis MATLAB function returns the scalar dot product of A and B.cross - Cross productThis MATLAB function returns the cross product of A and B.text - Create text object in current axesThis MATLAB function adds the string in quotes to the location specified by thepoint (x,y) x and y must be numbers of class double.nan - Not-a-NumberThis MATLAB function returns the IEEE arithmetic representation for Not-a-Number (NaN).subplot - Create axes in tiled positionsThis MATLAB function divides the current figure into an m-by-n grid and creates an axes for a subplot in the position specified by p.legend - Add legend to graphThis MATLAB function creates a legend in the current axes using the specifiedstrings to label each set of data.clock - Current date and time as date vectorThis MATLAB function returns a six-element date vector containing the currentdate and time in decimal form:date - Current date stringThis MATLAB function returns a string containing the date in the format,day-month-year, for example, 01-Jan-2014.isreal - Determine if array is realThis MATLAB function returns logical 1 (true) if A does not have an imaginarypart.zeros - Create array of all zerosThis MATLAB function returns the scalar 0.sinh - Hyperbolic sine of argument in radiansThis MATLAB function returns the hyperbolic sine of the elements of X.pause - Halt execution temporarilyThis MATLAB function, by itself, causes the currently executing function to stopand wait for you to press any key before continuing.sum - Sum of array elementsThis MATLAB function returns the sum of the elements of A along the first array dimension whose size does not equal 1:。