====== Differences ====== This shows you the differences between two versions of the page.
gibson:teaching:fall-2012:math445:magicsack2.m [2012/09/27 13:58] gibson created |
gibson:teaching:fall-2012:math445:magicsack2.m [2012/09/27 13:58] (current) gibson |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | <code> | ||
% You have a sack of nine balls, three each red, green, blue. | % You have a sack of nine balls, three each red, green, blue. | ||
% If you draw two balls out of the sack, what's the chance they are | % If you draw two balls out of the sack, what's the chance they are | ||
Line 20: | Line 21: | ||
fprintf('The prob of choosing two green balls first is %f\n', count/Ntrials); | fprintf('The prob of choosing two green balls first is %f\n', count/Ntrials); | ||
+ | </code> |