getNumOutputs
调用 System object 而得到的输出数目
说明
示例
获取对象的输出数目
创建 Counter
对象并设置属性。
obj = Counter; obj.UseIncrement = false
obj = Counter with properties: UseIncrement: false UseWrapValue: true StartValue: 1 Increment: 1 WrapValue: 10
获取调用对象所需的输入和输出数目。
in = getNumInputs(obj)
in = 1
out = getNumOutputs(obj)
out = 1
输入参数
obj
— 要查询的 System object™
System object 句柄
要查询其输出数目的 System object。
输出参量
num
— 输出数量
整数
调用 System object 的输出数目。
扩展功能
C/C++ 代码生成
使用 MATLAB® Coder™ 生成 C 代码和 C++ 代码。
有关详细信息,请参阅 MATLAB 代码生成中的 System object (MATLAB Coder)。
版本历史记录
在 R2010a 中推出
MATLAB 命令
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)