{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

hmk2[1]

# hmk2[1] - 3 Matlab function randtool is a demo program with...

This preview shows pages 1–2. Sign up to view the full content.

ECE302 Homework 2 9. 10. 11.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
MATLAB EXERCISES 1. The sample space is S={0, 1} and each outcome is equally likely. Using Matlab, generate N=100 samples from S and evaluate the relative frequency of the event A={1} for this experiment. Print out the relative frequency and the source code. Hint: generate random numbers from [0, 1] and assign 1 to the second half of the interval. 2. Varying N from 1 to 200 in problem 1, plot the relative frequency with respect to N. Print out the plot and the source code.
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 3. Matlab function randtool is a demo program with graphical user interface which allows you to generate random numbers from the most common probability distributions. Run randtool and choose the number of samples to be 400 with several of the distributions listed. Export the data generated with the export button. Then, histogram the data with the hist command with 40 bins. Show your results by cut and paste....
View Full Document

{[ snackBarMessage ]}

### Page1 / 2

hmk2[1] - 3 Matlab function randtool is a demo program with...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online