필터 지우기
필터 지우기

In Simulink, how can I add switches which open or close at a certain time?

조회 수: 16 (최근 30일)
I have the next circuit and I want that the first switch(starting from left to right) closes at t=0s, the second one opens at t=0s and the last one closes at t=0.1s

채택된 답변

M.B
M.B 2023년 5월 29일
편집: M.B 2023년 5월 29일
What did you try? Did you get any errors?
You will need to set threashold to 0.5 in the switches and modify the values in the step blocks.
First switch: step time = 0; Initial value = 0; final value = 1;
Second switch: step time = 0; Initial value = 1; final value = 0;
Third switch: step time = 0.1; Initial value = 0; final value = 1;
  댓글 수: 1
Washington
Washington 2023년 6월 1일
I didn't get any error, just i was not getting the answer as expected, i had to change the circuit breaker for a switch and finally worked.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Switches and Breakers에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by