nargout
System object 的输出参数的数目
说明
返回 numOutputs
= nargout(obj
)obj
算法定义所需要的输出参数的数目。此函数是常规 nargout
函数在 System object™ 中的扩展应用。
如果您的 System object 使用 matlab.system.mixin.Nondirect
(Simulink) 类,则 nargin
返回 updateImpl
和 outputImpl
方法的输出参数的数目。
nargout
返回在对当前正在执行的 System object 进行的调用中指定的输出参数的数目。此语法只能在 System object 环境中使用。