Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Object Databases The Essentials

Authors: Mary E. S. Loomis

1st Edition

020156341X, 978-0201563412

More Books

Students also viewed these Databases questions