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

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

View Full Document Right Arrow Icon
ECE302 Homework 2 9. 10. 11.
Background image of page 1

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

View Full DocumentRight Arrow Icon
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.
Background image of page 2
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

This note was uploaded on 11/29/2010 for the course ECE 302 taught by Professor Gelfand during the Spring '08 term at Purdue University-West Lafayette.

Page1 / 2

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

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online