Reference no: EM132216499
(a) Write and test a MATLAB program that simulates the experiment of rolling two die a specified number of times N, and generates estimates of the following statistics.
a. The relative probability that the total number of spots is equal to (2, 3, ..., 11,12)
b. The percentage difference bet ween the most frequent and least frequent of the 36 possible outcomes.
I have so far:
function [ i, j ] = Roll_two_die (A)
i = randi(6);
j = randi(6);
end
using A = zeros(6,6) how can i set this up to call the Roll_two_die function N times?
(b) Run the program with N = 1,000, 10,000, 100,000 and 1,000,000