How do I stop a signal after a fixed time and let the simulation continue?

Hi,
I have a fairly simple problem. Consider I have two signals: a sine wave and a step function. If my simulation time is 100 seconds, how do I get the input signal to be the sine wave for the first 50 seconds and then switch to the step function for the final 50 seconds?

1 Comment

am facing a similar problem..how did you solve yours?
thanks in advance

Sign in to comment.

More Answers (0)

Products

Release

R2018b

Asked:

on 4 Jan 2021

Commented:

on 30 Aug 2024

Community Treasure Hunt

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

Start Hunting!