Switch depend on time

조회 수: 15 (최근 30일)
ali alshetwi
ali alshetwi 2017년 1월 4일
댓글: Vishwa sharma 2021년 3월 13일
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

채택된 답변

Les Beckham
Les Beckham 2017년 1월 4일
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
ali alshetwi
ali alshetwi 2017년 1월 5일
편집: ali alshetwi 2017년 1월 5일
Les Beckham, good work. Thank you so much
Vishwa sharma
Vishwa sharma 2021년 3월 13일
Bhai tu naa hota to main kya mooh dikhata master ko.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by