This solution is outdated. To rescore this solution, sign in.
-
1 Comment
SAJJAD
on 10 Aug 2013
for 21 size. little editing :)
function ans = is_it_odd(n)
if mod(n,2)==0; false;
else
true
end
Suggested Problems
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15657 Solvers
-
Return the 3n+1 sequence for n
8373 Solvers
-
Project Euler: Problem 6, Natural numbers, squares and sums.
2347 Solvers
-
Convert a numerical matrix into a cell array of strings
2159 Solvers
-
610 Solvers
More from this Author96
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!