Borrar filtros
Borrar filtros

code for verifying whether 𝑓 is odd or even.

4 visualizaciones (últimos 30 días)
Sai Teja Sunkari
Sai Teja Sunkari el 29 de Jul. de 2020
Respondida: Arthur Roué el 29 de Jul. de 2020
Mat-Lab code for verifying whether 𝑓 is odd or even.

Respuestas (1)

Arthur Roué
Arthur Roué el 29 de Jul. de 2020
% Test if myVal is even
bIsEven = ~mod(myVal, 2)
And you can read mod and rem

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by