如何在 Stateflow 中加入信号延时?

64 views (last 30 days)
MathWorks Support Team
MathWorks Support Team on 6 Dec 2019
如何在 Stateflow 中加入信号延时?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 6 Dec 2019
在 Stateflow 内部引入延时,可以用 transitions 和临时变量。参考附件:
在 Stateflow 中,定义临时变量 temp,当成状态变量用。每次先执行输出,再更新状态变量,从而实现当前的输出是上一次更新的状态变量,即实现延时。

More Answers (0)

Categories

Find more on 复杂逻辑 in Help Center and File Exchange

Tags

No tags entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!