need help with the simmulink blocks
이전 댓글 표시
how do i generate this type of plot in simulink with the step block
채택된 답변
추가 답변 (1개)
Amit Dhakite
2023년 4월 12일
편집: Amit Dhakite
2023년 4월 12일
0 개 추천
Hi Chukwuebuka,
You can generate the required graph as shown by you in the attached image by using two step blocks and a switch block.
Configure the first step block to generate value 0, when x is in between 0 and 1. And after step time 1 units, give final value as 1. It will give output as follows:

Configure the second step block to generate value 1 till the time 9 units, and after that set final value as 0. It will give output as follows:

Finally, use switch block to get the values till 9 units of time from the step_1, and after that from step_2.

A working example of the above model is attached here for you reference.
For further information, kindly refer to the following links:
카테고리
도움말 센터 및 File Exchange에서 Sources에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
