Question: Create a vector of 5 values filled with random integers, max of 100, using the randi function: randi (100,1,5) ; Write down the command that

 Create a vector of 5 values filled with random integers, max

Create a vector of 5 values filled with random integers, max of 100, using the randi function: randi (100,1,5) ; Write down the command that you typed to create your array and the integers contained within you array in the corresponding space in the table on the last page. Using relational and logical operators, determine the values in the array that are 1. 2. Greater than 50 a. b. Between 75 and 25 Greater than 75 or less than 25 Less than 50 c. d. You should get an array that contains 1s and 0s where 1s indicate logical True and Os indicate logical False. For each question (a-d), write down the command that you used to find the set of values and write down the resulting array of 1s and Os in the corresponding space in the table on the last page

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!