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.

Answers (1)

Yi Han
Yi Han on 17 Nov 2017
Hi Ariana, A lookup table should meet your needs. Thanks, Han

Categories

Find more on Simulink in Help Center and File Exchange

Tags

Asked:

on 23 Jan 2015

Answered:

on 17 Nov 2017

Community Treasure Hunt

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

Start Hunting!