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

Antworten (1)

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

Kategorien

Mehr zu Simulink finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2018b

Gefragt:

am 29 Nov. 2018

Beantwortet:

am 2 Dez. 2018

Community Treasure Hunt

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

Start Hunting!

Translated by