![temp.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/197983/temp.png)
How to create a Simulink model that gives output 1 if input is even and 0 if it's odd?
조회 수: 17 (최근 30일)
이전 댓글 표시
The output must be displayed through a scope.
댓글 수: 0
답변 (1개)
Arunkumar M
2018년 12월 2일
Use the rem function using interpreted matlab function and then use a switch to get your desired output
![temp.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/197983/temp.png)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Simulink Functions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!