Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Avoid repeating value in simulink
조회 수: 4 (최근 30일)
이전 댓글 표시
I need to use logic block relational operator in simulink to compare between the signal value and constant array if the one value of the array == the signal do something if not don't do any thing
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/171079/image.png)
the purpose is to avoid repeating same value --> Is x== ( one of the array )--> yes--> choose different value no --> leave it
댓글 수: 1
Krishna Bindumadhavan
2018년 3월 15일
It looks like that you may be looking for the switch block (https://www.mathworks.com/help/simulink/slref/switch.html).
You can probably use the output of the relational operator block as the second input to the switch block.
답변 (0개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!