
Switch depend on time
15 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
ali alshetwi
el 4 de En. de 2017
Comentada: Vishwa sharma
el 13 de Mzo. de 2021
My simulation time is one second, but I want to switch into new input from 0.5s to 1s. please help me If you know any tool can do this feature. Thanks in advance
0 comentarios
Respuesta aceptada
Les Beckham
el 4 de En. de 2017
Use the Clock block for the current simulation time and a Switch block to compare the time to your desired switch time.
This example will switch the output of the Switch block from 0 to 1 at 5 seconds.

2 comentarios
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!