Question: Solve Using MATLAB Experiment 4.7 MATLAB is equipped with two functions for generating random numbers that follow the uniform distribution and the normal (Gaussian) distribution.
Experiment 4.7 MATLAB is equipped with two functions for generating random numbers that follow the uniform distribution and the normal (Gaussian) distribution. These functions are rand and randn, respectively. (a) Use the help command to enable you to write a concise description of the rand function. Then create a 10-bin histogram of 100 random numbers generated by the rand function. (b) Use the help command to enable you to write a concise description of the randn function. Then create a 20-bin histogram of 500 random numbers generated by the randn function. Use the range [-5, 5) for the histogram. (c) Export the figures created in parts (a) and (b) as PNG files with filenames "Group_n_L4_7a' and 'Group_n_L4_7b', respectively. Noten is the number assigned to your lab station
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
