stateflow interpretation blocks- integrator

Respuestas (1)

Muthukumar Ganesan
Muthukumar Ganesan el 16 de Ag. de 2022

0 votos

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.

Categorías

Más información sobre Stateflow en Centro de ayuda y File Exchange.

Preguntada:

el 20 de Oct. de 2016

Respondida:

el 16 de Ag. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by