Azzera filtri
Azzera filtri

code for verifying whether 𝑓 is odd or even.

4 visualizzazioni (ultimi 30 giorni)
Sai Teja Sunkari
Sai Teja Sunkari il 29 Lug 2020
Risposto: Arthur Roué il 29 Lug 2020
Mat-Lab code for verifying whether 𝑓 is odd or even.

Risposte (1)

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

Categorie

Scopri di più su Get Started with MATLAB in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by