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