![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?
21 ビュー (過去 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!