How do I Create a function named “evennum” that returns 2 if its argument is even, and 1 if its argument is odd, using either the built in mod or floor functions on MATLAB?

1 visualización (últimos 30 días)
I am totally new to MATLAB and am unsure of how to tackle this problem. Any suggestions?

Respuestas (0)

Categorías

Más información sobre Entering Commands 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!

Translated by