请翻译下面英语

来源:百度知道 编辑:UC知道 时间:2024/05/22 09:53:08
In the body of a function M-file, nargin and nargout indicate how many input or output arguments, respectively, a user has supplied. Outside the body of a function M-file, nargin and nargout indicate the number of input or output arguments, respectively, for a given function. The number of arguments is negative if the function has a variable number of arguments.

nargin returns the number of input arguments specified for a function.

nargin(fun) returns the number of declared inputs for the function fun. If the function has a variable number of input arguments, nargin returns a negative value. fun may be the name of a function, or a function handle that maps to a specific function.

nargout returns the number of output arguments specified for a function.

nargout(fun) returns the number of declared outputs for the function fun. fun may be the name of a function, or a function handle that maps to a specific function.

在身体功能的M档案,nargin和nargout显示输入或输出多少论据,分别 用户有供应. 境外机构功能的M档案,nargin和nargout显示输入或输出的人数论点,分别 某个功能. 数理是有负面的作用,如果变多少争论. nargin申报人数为特定功能的投入争论. nargin(训)宣布投入回报多少功能好玩. 如果有变函数数理投入,回报nargin负值. 有趣的名字,可功能或地图功能,以处理特定的功能. nargout返回指定数目的论点输出功能. nargout(训)申报数量申报产出功能好玩. 有趣的名字,可功能或地图功能,以处理特定的功能.