Determine the number of odd integers in a vector - MATLAB Cody - MATLAB Central

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

Difficulty:Rate

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.29% Correct | 64.71% Incorrect
Last Solution submitted on Mar 11, 2025

Problem Comments

Solution Comments

Show comments
Registration Now Open for MathWorks AUTOMOTIVE CONFERENCE 2025
...
Hello Community, We're excited to announce that registration is now open for the...

Group

Guess the Logic! Image
Guess the Logic!
  • 17 Problems
  • 241 Finishers

Problem Recent Solvers755

Problem Tags

Community Treasure Hunt

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

Start Hunting!
Go to top of page