如何在 Stateflow 中加入信号延时?
66 views (last 30 days)
Show older comments
MathWorks Support Team
on 6 Dec 2019
Answered: MathWorks Support Team
on 6 Dec 2019
如何在 Stateflow 中加入信号延时?
Accepted Answer
MathWorks Support Team
on 6 Dec 2019
在 Stateflow 内部引入延时,可以用 transitions 和临时变量。参考附件:
在 Stateflow 中,定义临时变量 temp,当成状态变量用。每次先执行输出,再更新状态变量,从而实现当前的输出是上一次更新的状态变量,即实现延时。
0 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!