Question: Matlab: 5. Create an M-by-N array of random numbers (use rand Move through the array, element by element, and set any value that is less

Matlab:

Matlab: 5. Create an M-by-N array of random numbers (use rand Move

5. Create an M-by-N array of random numbers (use rand Move through the array, element by element, and set any value that is less than 0.2 to 0 and any value that is greater than (or equal to) 0.2 to 1. 6. Given x = [4 1 6] and y = [6 2 7], compute the following arrays c. ci = Xiyi, then add up the elements of c. e, eij reciprocal of the lesser of xi and yj 7. Write a script that will use the random-number generator rand to determine the following: a. The number of random numbers it takes to add up to 20 (or more) b. The number of random numbers it takes before a number between 0.8 and 0.85 occurs. c. The number of rando umbers it takes before the mean of those numbers is within 0.01 of 0.5 (the mean of this random-number generator). It will be worthwhile to run your script several times because you are dealing with random numbers

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!