This solution is outdated. To rescore this solution, sign in.
-
1 Comment
Jim Hokanson
on 25 Jan 2012
Hooray for ambiguous classing requirements.
How about this for the "best" solution:
x_odd = x(is_it_odd(x)); % :/
The answer should be logical(mod(n,2)).
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!