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

Respuestas (1)

Use the rem function using interpreted matlab function and then use a switch to get your desired output
temp.PNG

Categorías

Más información sobre Simulink en Centro de ayuda y File Exchange.

Productos

Versión

R2018b

Preguntada:

el 29 de Nov. de 2018

Respondida:

el 2 de Dic. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by