I want to compute the number of odd/even numbers in an array. But I want the results by two different functions.
Example:
x=1:10; assert(isequal(odd_fcn(x),5)) assert(isequal(even_fcn(x),5))
So you must solve this problem by writing 2 functions.
But you can only submit one function at the time.
Do you think it's possible?
HINT: I always test odd_fcn first. So odd_fcn must create the other function...
Tons of possibilities here is the thing I like the most about this problem.
Is it a comeback ?
HEHEHE
I'm trying to do my best... ;-)
Cody without Alfonso is not Cody...
Little marvel of coding.
14347 Solvers
Omit columns averages from a matrix
482 Solvers
533 Solvers
Find Index of maximum Value and maximum Value of a vector
123 Solvers
Matlab Basics - Create a row vector
205 Solvers