MATLAB Homework

profilebshap0624
MATLABHomework_2ECE352.docx

MATLAB Homework

1. Confirm that the MATLAB function randn() produces a Gaussian Random Variable by generating 10,000 random numbers, plotting a histogram, and comparing the histogram to a plot of the theoretical Gaussian PDF. You will have to normalize the histogram by the total number of samples generated multiplied by the bin width. Use 25 bins for the histogram. For one plot, use means = 0 and standard deviation = 1 for the Gaussian PDF. Run the experiment again using mean = 1 and standard deviation = 1.5.

2. Put both plots on the same figure using subplot() command in MATLAB. Apply appropriate axis labels to your plot.

You should turn in a brief report including 3 items:

a) Relevant plots

b) Some thoughtful comments and/or conclusions regarding the experiment

c) The MATLAB program