please help
정보
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
이전 댓글 표시
Simulation of tossing a pair of fair dice can be done using the following two MATLAB lines X=ceil(6*rand(1,n)); Y=ceil(6*rand(1,n)); where n is the number of tosses. Write a MATLAB script to determine the probability P[X+Y=7]. Use a “for” loop to run simulation fifty times with n = 10000. Plot the 100 estimated probability values along with the theoretical result of P[X+Y=7]. 2. Write a MATLAB script to do the following a. Create 10000 random variables uniformly distributed between 2 and 4. b. Create a histogram to approximate the actual probability density function. c. Superimpose the actual probability density function to the above histogram
댓글 수: 3
Rick Rosson
2011년 6월 25일
What have you tried so far?
Manu Young
2011년 6월 25일
Rick Rosson
2011년 6월 25일
It looks like you are making good progress. What is your question?
답변 (1개)
Walter Roberson
2011년 6월 25일
0 개 추천
Refer to the assistance already given to southie on the identical question: http://www.mathworks.com/matlabcentral/answers/10228-help-me-please
댓글 수: 0
이 질문은 마감되었습니다.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!