stateflow interpretation blocks- integrator
1 次查看(过去 30 天)
显示 更早的评论
Hi!
Can you please help me to interpret these blocks please? I'm beginner in stateflow.
0 个评论
回答(1 个)
Muthukumar Ganesan
2022-8-16
Hi,
These are Causal Discrete systems. Let's assume input is x and output is y.
Hope you are good at C.
Case 1: Accumulates x for the subsequent samples with no limit on its ouput. There is a possibility out of bound.
y(n) = x(n) + y(n-1)
Case 2: Accumulates x for the subsequent samples with a limit of -10 to +10. No possibility of out of bound.
Temp = x(n) + y(n-1)
if Temp > 10
y(n) = 10
else if Temp < -10
y(n) = -10
else
y(n) = Temp
Thanks.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!