matlab函数英文说明(3)

时间: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字,全部文档内容请下载后查看。喜欢就下载吧 ……
matlab函数英文说明(3).doc 将本文的Word文档下载到电脑

上一篇:学生点名册

下一篇:如何挖掘产品卖点

精彩图片

热门精选

大家正在看

× 游客快捷下载通道(下载后可以自由复制和排版)

限时特价:7 元/份 原价:20元

支付方式:

开通VIP包月会员 特价:29元/月

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219