Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
A_66=zeros(6,6);
% makes a 6X6 matrix of zeros
for i=1:6
for j=1:6
A_66(i,j)=i*j;
end
end
% This nested for loop simulates the possible outcomes of multiplying two six
% sided dice
fprintf('mean of A_66 =%1.2f\nstdev of A_66=%1.2f\n' , mean(A_66(:)),std(A_66(:)))
% This line prints out the mode of the dice rolls as well as the standard
% deviation