matlab函数英文说明(2)
时间:2025-07-10
时间:2025-07-10
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
…… 此处隐藏:173字,全部文档内容请下载后查看。喜欢就下载吧 ……