Modeling Mode Logic in Embedded MATLAB

版本 1.0.0.1 (11.7 KB) 作者: Kiran Kintali
Implementing Mealy and Moore FSMS in an Embedded MATLAB block
2.7K 次下载
更新时间 2016/9/1

查看许可证

A finite state machine is a representation of a reactive system. In an event-driven system, the system makes a transition from one state (mode) to another prescribed state, provided that the condition defining the change is true.
Stateflow is the best tool for modeling finite state machines. It provides very sophisticated capabilities to build hierarchical and parallel state machines, temporal logic and state entry/during/exit actions etc.,

However there are many Signal Processing and Communications applications where in when writing a very data flow centric algorithms, there comes a need to write a simple controller embedded in the algorithm.This example shows how to implement such a simple mealy or more state machine in Embedded MATLAB control using control flow constructs.

Mealy: y = f(x,u)
all actions are condition actions and outputs are function of state and input

Moore: y = f(x)
all actions are state actions and outputs are pure functions of state only

引用格式

Kiran Kintali (2024). Modeling Mode Logic in Embedded MATLAB (https://www.mathworks.com/matlabcentral/fileexchange/15972-modeling-mode-logic-in-embedded-matlab), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2007a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 General Applications 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.1

Updated license

1.0.0.0

add to eML category