stateflow interpretation blocks- integrator
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi!
Can you please help me to interpret these blocks please? I'm beginner in stateflow.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/157280/image.png)
0 commentaires
Réponses (1)
Muthukumar Ganesan
le 16 Août 2022
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 commentaires
Voir également
Catégories
En savoir plus sur Simulink Functions dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!