How to create a Simulink model that gives output 1 if input is even and 0 if it's odd?
Afficher commentaires plus anciens
The output must be displayed through a scope.
Réponses (1)
Arunkumar M
le 2 Déc 2018
0 votes
Use the rem function using interpreted matlab function and then use a switch to get your desired output

Catégories
En savoir plus sur Simulink dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!