Lab2 - MEMORANDUM TO Dr Kuang-An Chang Instructor CVEN 302...

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

M E M O R A N D U M TO: Dr. Kuang-An Chang Instructor, CVEN 302, Fall 2010 FROM: Ryan Henry 219003331 DATE: September 17, 2010 RE: Random Number Generation and Particle Diffusion For this programming assignment, I used rand and randn to generate groups of random num- bers and then plotted them in a bar graph with 20 sub-intervals to see if the random numbers were actually “random”. For figure 1, all of the bars in the bar graph are semi-close to each oth- er, meaning that the random numbers were truly random. Also, in figure 2, the bar graph is bell- shaped, meaning that the random numbers were truly random and normally distributed. Figure 3 is a plot of the “random walk” and diffusion methods which can be observed in the Appendix section in the Matlab code. Figure 1 Zachry Department of Civil Engineering, 3136 TAMU, College Station, TX 77843-3136.

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

View Full Document
Figure 3 2 Figure 2
A P P E N D I X 1 % Program rand_gen.m % % This program generates random numbers and examines their distributions

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 6

Lab2 - MEMORANDUM TO Dr Kuang-An Chang Instructor CVEN 302...

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

View Full Document
Ask a homework question - tutors are online