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!

 채택된 답변

AbhimanyuSingh
AbhimanyuSingh 2017년 8월 8일

1 개 추천

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:

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Simulink Functions에 대해 자세히 알아보기

제품

질문:

2017년 8월 8일

댓글:

2017년 8월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by