Answered step by step
Verified Expert Solution
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
(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
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