This solution is outdated. To rescore this solution, sign in.
-
2 Comments
Qin
on 10 Feb 2017
function tf = is_it_odd(n)
if mod(n,2)==0
tf = 'false';
else
tf = 'ture';
end
why assertion failed. it works in matlab.
MAHMOUD ABDEL-LATIF
on 4 Jun 2019
Thanks for your answer, you had a typo in true, also you should remove ' ' from false and true
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!