Time-varying constant input in Simulink

Hi, How can I generate a constant input, but time-varying? Say at 0-10, it should output 5, then 10-20 -->0, then after 20, it should output say 10?
I was trying ''repeating sequence'', but that was doing linear increase on intervals; I need step/sudden increase.

Respuestas (1)

Yi Han
Yi Han el 17 de Nov. de 2017

0 votos

Hi Ariana, A lookup table should meet your needs. Thanks, Han

Categorías

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

Etiquetas

Preguntada:

el 23 de En. de 2015

Respondida:

el 17 de Nov. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by