Main Content

本页翻译不是最新的。点击此处可查看最新英文版本。

离散事件图和模式图

对系统行为的离散变化进行建模

通常,物理建模涉及连续变量和方程。然而,在某些情况下,您可以将系统行为的某些变化视为离散行为,以此简化系统的数学模型并提升仿真性能。要开始使用,请参阅Discrete Event Modeling

模式图提供了一种直观的方法,可以对具有离散的不同操作模式特征的组件进行建模。每次需要对具有多个操作模式和转移的组件进行建模时,都可以考虑通过模式图来实现。要开始使用,请参阅Mode Chart Modeling

语言语法

全部展开

eventsModel discrete events
edgeTrigger event
initialeventInitialize event variables
modechartsDeclare mode charts that include operating modes and transitions
modesDeclare operating modes in mode chart
transitionsDefine transitions between modes in mode chart
initialSpecify initial mode in mode chart
entrySpecify actions to be performed upon entering a mode (自 R2020b 起)

主题

离散变量和事件

  • Discrete Event Modeling
    Simplify mathematical model of the system by assuming that certain variables can change values instantaneously and discontinuously at specific points in time.
  • Triggered Delay Component
    This example shows how to implement a triggered delay component.
  • Enabled Component
    This example shows how to implement a component similar to a Simulink® enabled subsystem.

模式图