How to create a Simulink model that gives output 1 if input is even and 0 if it's odd?
20 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
The output must be displayed through a scope.
0 comentarios
Respuestas (1)
Arunkumar M
el 2 de Dic. de 2018
Use the rem function using interpreted matlab function and then use a switch to get your desired output
0 comentarios
Ver también
Categorías
Más información sobre Simulink Functions en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!