Question: Implement a user-defined function that generates a vector of 20 random integers, each in the range of 50 to 100. Create a variable evens that
Implement a user-defined function that generates a vector of 20 random integers, each in the range of 50 to 100.
Create a variable evens that stores all of the even numbers from the vector and a variable odds that stores the odd numbers.
You are not allowed to use loops in your solution.
Moreover, you MUST define a user function as demonstrated in class (in a separate .m file).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
