早教吧 育儿知识 作业答案 考试题库 百科 知识分享

英语翻译InthebodyofafunctionM-file,narginandnargoutindicatehowmanyinputoroutputarguments,respectively,auserhassupplied.OutsidethebodyofafunctionM-file,narginandnargoutindicatethenumberofinputoroutputarguments,res

题目详情
英语翻译
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(训)申报数量申报产出功能好玩.有趣的名字,可功能或地图功能,以处理特定的功能.