![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/177736/image.png)
Logical Matrix Indexing - Simulink
조회 수: 1 (최근 30일)
이전 댓글 표시
I want to set all values bigger than one to 255. Matlab Code would be easily A(A>1) = 255;
But which Simulink blocks can I use to do this? Thank you!
댓글 수: 0
채택된 답변
AbhimanyuSingh
2017년 8월 8일
You Can use the Switch Block present in the /Simulink/Signal Routing/Switch In block properties you can select the 'Threshold' property value as 1 and 'Criteria for passing input' as "u2>Threshold", as shown in the attached image:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/177736/image.png)
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Computer Vision with Simulink에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!