Question: Matlab Question: In this exercise, you can modify the Matlab script HW1.m to complete the following tasks. For submission, you will submit a single Matlab
Matlab Question: In this exercise, you can modify the Matlab script HW1.m to complete the following tasks. For submission, you will submit a single Matlab script, titled "HW1_FirstName_LastName.m" with your first and last name. Your script will not be graded if it is not titled correctly or does not run when executed. HW1.m generates 1000 random integers between 10 and 50 and generates a histogram showing the resulting number of occurrences. Your script should output the plots described below when executed. a. Update the code so that the histogram uses 10 bins. b. Update so that the figure shows relative frequency (rather than number of occurrences). c. Create a second set of random integers between -20 and 20 and plot the histogram of these values in the same way as in part b. d. Generate a figure that shows both histograms in the same plot. Use the legend() command to add a label that clarifies "Random Values 1" and "Random Values 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
