Switch depend on time

17 vues (au cours des 30 derniers jours)
ali alshetwi
ali alshetwi le 4 Jan 2017
Commenté : Vishwa sharma le 13 Mar 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

Réponse acceptée

Les Beckham
Les Beckham le 4 Jan 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 commentaires
ali alshetwi
ali alshetwi le 5 Jan 2017
Modifié(e) : ali alshetwi le 5 Jan 2017
Les Beckham, good work. Thank you so much
Vishwa sharma
Vishwa sharma le 13 Mar 2021
Bhai tu naa hota to main kya mooh dikhata master ko.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Modeling dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by