Question: ( 6 points ) Generate a row vector of 2 0 random integers between 5 0 and 1 0 0 . Create a logical index
points Generate a row vector of random integers between and Create a logical index vector that identifies all even numbers in your array ie all numbers that have a remainder of zero when divided by are identified as true Use your logical index vector and logical operators to create a vector evens that extracts all the even numbers from the original row vector and a variable odds that contains all the odd numbers.
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
