How to create a Simulink model that gives output 1 if input is even and 0 if it's odd?

답변 (1개)

Arunkumar M
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

카테고리

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

제품

릴리스

R2018b

질문:

2018년 11월 29일

답변:

2018년 12월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by