matlab函数英文说明

更新时间:2023-07-21 22:08:01 阅读量: 实用文档 文档下载

说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。

sin - Sine of argument in radians

This MATLAB function returns thesine of the elements of X.

rand - Uniformly distributed pseudorandom numbers

This MATLAB function returns a pseudorandom scalar drawn from the standard uniform distribution on the open interval (0,1).

global - Declare variables as global

This MATLAB function declares variables var1 ...

sqrt - Square root

This MATLAB function returns the square root of each element of the array X. title - Add title to current axes

This MATLAB function adds the title consisting of a string, str, at the top and

in the center of the current axes.

meshgrid - Rectangular grid in 2-D and 3-D space

This MATLAB function replicates the grid vectors xgv and ygv to produce a full

grid.

inv - Matrix inverse

This MATLAB function returns the inverse of the square matrix X.

inf - Infinity

This MATLAB function returns the IEEE arithmetic representation for positive

infinity.

fix - Round toward zero

This MATLAB function rounds the elements of A toward zero, resulting in an array

of integers.

ones - Create array of all ones

This MATLAB function returns the scalar 1.

linspace - Generate linearly spaced vector

This MATLAB function returns a row vector with 100 linearly spaced points in the

interval [x1,x2].

sort - Sort array elements

This 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 plots

This MATLAB function adds major grid lines to the current axes.

plot - 2-D line plot

This 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 plot

This MATLAB function creates a three-dimensional shaded surface from the z

components in matrix Z, using x = 1:n and y = 1:m, where [m,n] = size(Z).

ylabel - Label y-axis

This MATLAB function labels the y-axis of the current axes with the string, str. xlabel - Label x-axis

This MATLAB function labels the x-axis of the current axes with the text

specified by str.

function - Declare function name, inputs, and outputs

This MATLAB function declares a function named myfun that accepts inputs

x1,...,xM and returns outputs y1,...,yN.

disp - Display text or array

This MATLAB function displays the contents of X without printing the variable

name.

num2str - Convert number to string

This MATLAB function converts array A into a string representation str.

continue - Pass control to next iteration of for or while loop

This 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 file

This MATLAB function writes array A to the first worksheet in Excel file,

filename, starting at cell A1.

find - Find indices and values of nonzero elements

This MATLAB function returns a vector containing the linear indices of each

nonzero element in array X.

mesh - Mesh plot

This MATLAB function draws a wireframe mesh with color determined by Z, so color

is proportional to surface height.

polar - Polar coordinate plot

This MATLAB function creates a polar coordinate plot of the angle theta versus

the radius rho.

round - Round to nearest decimal or integer

This MATLAB function rounds each element of X to the nearest integer.

log - Natural logarithm

This MATLAB function returns the natural logarithm ln(x) of each element in

array X.

input - Request user input

This MATLAB function requests user input by displaying the prompt string on the

screen.

isprime - Determine which array elements are prime

This MATLAB function returns a logical array the same size as X.

abs - Absolute value and complex magnitude

This MATLAB function returns the absolute value of each element in array X.

tan - Tangent of argument in radians

This MATLAB function returns the tangent of each element of X.

axis - Axis scaling and appearance

This MATLAB function sets the limits for the x- and y-axis of the current axes. eye - Identity matrix

This MATLAB function returns the scalar, 1.

varargin - Variable-length input argument list

This MATLAB function is an input variable in a function definition statement

that allows the function to accept any number of input arguments.

nargin - Number of function input arguments

This 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 matrix

This MATLAB function returns a square diagonal matrix with the elements of

vector v on the main diagonal.

menu - Generate menu of choices for user input

This 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 file

This MATLAB function saves all variables from the current workspace in a MATLAB

formatted binary file (MAT-file) called filename.

addpath - Add folders to search path

This MATLAB function adds the specified folders to the top of the search path. fprintf - Write data to text file

This MATLAB function applies the formatSpec to all elements of arrays A1,...An in column order, and writes the data to a text file.

sprintf - Format data into string

This MATLAB function formats the data in arrays A1,...,An according to

formatSpec in column order, and returns the results to string str.

figure - Create figure window

This MATLAB function creates a new figure window using default property values. sign - Signum function

This MATLAB function returns an array Y the same size as X, where each element

of Y is:

var - Variance

This MATLAB function returns the variance of X for vectors.

rem - Remainder after division

This MATLAB function returns the remainder after division of X by Y.

sound - Convert matrix of signal data to sound

This 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 running

finish.m, if the file finish.m exists.

tic - Start stopwatch timer

This MATLAB function starts a stopwatch timer to measure performance.

toc - Read elapsed time from stopwatch

This MATLAB function reads the elapsed time from the stopwatch timer started by

the tic function.

floor - Round toward negative infinity

This MATLAB function rounds each element of X to the nearest integer less than

or equal to that element.

magic - Magic square

This MATLAB function returns an n-by-n matrix constructed from the integers 1

through n^2 with equal row and column sums.

ginput - Graphical input from mouse or cursor

This 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 interactively

This MATLAB function opens a dialog to interactively load data from a file or

the clipboard.

dot - Dot product

This MATLAB function returns the scalar dot product of A and B.

cross - Cross product

This MATLAB function returns the cross product of A and B.

text - Create text object in current axes

This MATLAB function adds the string in quotes to the location specified by the

point (x,y) x and y must be numbers of class double.

nan - Not-a-Number

This MATLAB function returns the IEEE arithmetic representation for Not-a-Number

(NaN).

subplot - Create axes in tiled positions

This 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 graph

This MATLAB function creates a legend in the current axes using the specified

strings to label each set of data.

clock - Current date and time as date vector

This MATLAB function returns a six-element date vector containing the current

date and time in decimal form:

date - Current date string

This MATLAB function returns a string containing the date in the format,

day-month-year, for example, 01-Jan-2014.

isreal - Determine if array is real

This MATLAB function returns logical 1 (true) if A does not have an imaginary

part.

zeros - Create array of all zeros

This MATLAB function returns the scalar 0.

sinh - Hyperbolic sine of argument in radians

This MATLAB function returns the hyperbolic sine of the elements of X.

pause - Halt execution temporarily

This MATLAB function, by itself, causes the currently executing function to stop

and wait for you to press any key before continuing.

sum - Sum of array elements

This MATLAB function returns the sum of the elements of A along the first array dimension whose size does not equal 1:

本文来源:https://www.bwwdw.com/article/qhcm.html

Top