Clear Filters
Clear Filters

code for verifying whether 𝑓 is odd or even.

4 views (last 30 days)
Sai Teja Sunkari
Sai Teja Sunkari on 29 Jul 2020
Answered: Arthur Roué on 29 Jul 2020
Mat-Lab code for verifying whether 𝑓 is odd or even.

Answers (1)

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

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!