Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!

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

Created by Jeremy

Determine the number of unique odd integers in a vector.


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


Problem Group

Solution Statistics

139 correct solutions 229 incorrect solutions
Last solution submitted on Oct 12, 2015