Problem 44494. 'Determine if array of numbers is odd'

Solution 1410823

Submitted on 9 Jan 2018 by mharis
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
x = 1; y_correct = true; assert(isequal(is_odd(x),y_correct)) x=[ 3 7 8] y_correct =[true true false]; assert( isequal(is_odd(x),y_correct) );

x = 3 7 8

Suggested Problems

Community Treasure Hunt

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

Start Hunting!