Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(6 pts) In this problem, you will use MATLAB and its random-number generators to analyze the uniform and normal distributions. 7. (1 pt) Use rand

image text in transcribed

(6 pts) In this problem, you will use MATLAB and its random-number generators to analyze the uniform and normal distributions. 7. (1 pt) Use rand to generate a vector of 10,000 random numbers between 50 and 150. (1 pt) Use fprintf to print the minimum, maximum, median, mean, and standard deviations of the distribution to the screen. All should be to 5 sig figs. (1 pt) Make a histogram of the random numbers. See the histogram help menu to figure out how to limit the number of bins to ten (50 to 60, 60 to 70, etc.) and start and stop at 50 and 150, respectively. This can be done in a couple ways. (1 pt) Now use randn to generate 10,000 normally distributed random numbers with a mean of 100 and standard deviation of 20. (1 pt) Use fprintf to print the minimum, maximum, median, mean, and standard deviations of the distribution to the screen. More on these later. (1 pt) Make a histogram of the normally distributed random numbers. Use 20 bins, but you can let MATLAB decide the bin size and min/max x values for the bins. a. b. c. d. e. f

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

Demystifying Databases A Hands On Guide For Database Management

Authors: Shiva Sukula

1st Edition

8170005345, 978-8170005346

More Books

Students also viewed these Databases questions

Question

Were they made on a timely basis?

Answered: 1 week ago

Question

Did the decisions need to be made, or had they already been made?

Answered: 1 week ago

Question

When there was controversy, was it clear who had the final say?

Answered: 1 week ago