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
Suggested Problems
-
347 Solvers
-
388 Solvers
-
"Low : High - Low : High - Turn around " -- Create a subindices vector
552 Solvers
-
Generate a vector like 1,2,2,3,3,3,4,4,4,4
12615 Solvers
-
593 Solvers
More from this Author96
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!