帮助中心帮助中心
step
本页翻译不是最新的。点击此处可查看最新英文版本。
运行 System object 算法
step(obj,___)
示例
step(obj,___) 调用 System object™ 并运行该算法。根据您的 System object,step 可以返回输出参数。
obj
注意
从 R2016b 开始,您无需使用 step 方法来执行 System object 定义的运算,而是可以带参数调用对象,就好像它是函数一样。例如,y = step(obj,x) 和 y = obj(x) 执行等同运算。
y = step(obj,x)
y = obj(x)
有关算法和输入变量的详细信息,请参阅各个 System object 参考页。
全部折叠
创建 Counter 对象并设置属性。
Counter
obj = Counter; obj.UseIncrement = false
obj = Counter with properties: UseIncrement: false UseWrapValue: true StartValue: 1 Increment: 1 WrapValue: 10
运行计数器。
step(obj,1)
ans = 2
您要运行其算法的 System object。根据 System object,可能需要额外的输入参数。
有关详细信息,请参阅 MATLAB 代码生成中的 System object (MATLAB Coder)。
在 R2010a 中推出
reset
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
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:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office