Problem 1229. Determine the number of odd integers in a vector

Determine the number of unique odd integers in a vector.

Examples:

Input x = [2 5 8 3 7 1];
Output y = 4;
Input x = [2 5 9];
Output y = 2;

Solution Stats

35.01% Correct | 64.99% Incorrect
Last Solution submitted on Sep 28, 2024

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers717

Suggested Problems

More from this Author7

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!