Question: PROBLEM 1 (30 points) Use MATLAB Random Number Generator Commands (rand, randn, randi) to generate the followings: (1) Use the rand function to return an
PROBLEM 1 (30 points) Use MATLAB Random Number Generator Commands (rand, randn, randi) to generate the followings: (1) Use the rand function to return an array of 6 x 8 containing values drawn from a uniform distribution on the interval [10, 20). Find the minimum and maximum element value in the array (hint: double use of max(x)). (2) Use the randi function to return an array of 5 x 6 containing integer values drawn from the uniform distribution on the interval [50, 1000). Find the median, summation and standard deviation of the elements in the array. (3) Use the randn function to generate a normally-distributed array with the size of 2 x 3, the mean of 10 and standard deviation of 3.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
