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

 Respuesta aceptada

Les Beckham
Les Beckham el 4 de En. de 2017

3 votos

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

ali alshetwi
ali alshetwi el 5 de En. de 2017
Editada: ali alshetwi el 5 de En. de 2017
Les Beckham, good work. Thank you so much
Vishwa sharma
Vishwa sharma el 13 de Mzo. de 2021
Bhai tu naa hota to main kya mooh dikhata master ko.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

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

Preguntada:

el 4 de En. de 2017

Comentada:

el 13 de Mzo. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by