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)).
Suggested Problems
-
5999 Solvers
-
Magic is simple (for beginners)
10177 Solvers
-
Deleting an element in a matrix
475 Solvers
-
Matlab Basics - y as a function of x
507 Solvers
-
522 Solvers
More from this Author96
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!