switch controlled by signal
이전 댓글 표시
Like the picture showing, the simin block will has a series of data from matlab that only contains 0 and 1. I wanna the switch go to R1 when data is 0 and go to R2 when data is 1 during the simulation. How could I do this ? Thank you. 

댓글 수: 1
Dhanashree Mohite
2019년 2월 27일
Please elaborate on below points:
- You want to change one value of the series or multiple values at same time?
- What is the purpose of providing series to selection input of switch block, as at a time only one will be connected.
답변 (1개)
Dhanashree Mohite
2019년 2월 27일
0 개 추천
In case if one value to be given to the to selection input of switch block, you can use below options:
- Use constant block and change its value property using set_param from command window.
- Use toggle switch of dashboard in model itself and connect it to constant block. You’ll be able to change value through model itself.
카테고리
도움말 센터 및 File Exchange에서 Modeling에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!