Originally Posted by

**mayimbej** Here is a problem.

Generate a histogram of gaussian random numbers drawn from a population with a mean value of then and standard deviation of two. Include a sufficient number of samples and bins such that the resulting histogram approximates the Gausssina densitiy function in appearance.

Plot the theoretical envelope over the histogram to demonstrate the validity of the simulation. The histogram should show number of samples per bin. The abscissa should be labeled as numbers, not bins. DO not normalize the histogram to unity.

Im trying to use matalb or any kidn fo math program for this project, i need all the help i can get, just need help from anyone how to start this on prob matlab..

The following will generate a sample of size N from a normal distribution with

mean mu and SD sigma:

Code:

mu=10;
sigma=2;
N=1000;
sample=mu+sigma*randn(1,N);

RonL