Question: Matlab help Part 4: Matlab Program 20. (8 points) Generate a row vector of 20 random integers between 50 and 100 using the randi function.
Matlab help

Part 4: Matlab Program 20. (8 points) Generate a row vector of 20 random integers between 50 and 100 using the randi function. Use logical indexing to identify all even numbers in your array (i.e., all numbers that have a remainder of zero when divided by 2) and store the result as a logical array. Create a variable evens that extracts all the even numbers from the vector and a variable odds that contains all the odd numbers
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
