Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started