How do I stop a signal after a fixed time and let the simulation continue?
31 views (last 30 days)
Show older comments
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?
0 Comments
Accepted Answer
Paul
on 4 Jan 2021
Use a Switch block: https://www.mathworks.com/help/simulink/slref/switch.html
0 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!