Question: No even numbers ( 1 D Arrays ) Write a function called removeEvens to remove all the even numbers from input row array inRowArray, which
No even numbers D Arrays
Write a function called removeEvens to remove all the even numbers from input row array inRowArray, which contains integer numbers.
The function removeEvens should use the mod internal function and operate on a row array of any length.
Hint: Logical indexing and the double square brackets should be used. The mod function should be used to identify even numbers,
along with combination with logical indexing, and the empty array operator to remove the even numbers.
Restrictions: Loops should not be used.
Ex:
inputRowArray
removeEvens inputRowArray
produces
Function
function outputargs removeEvens inputargs
From integer row input array, remove even entries
end
Code to call your function
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
