Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (14 sloc) 575 Bytes
function [avg,stddev,numturns] = bingoprob(numcards,numruns,...
sidelength,delta,freespace)
if ~exist('numruns','var'), numruns = 1000; end
if ~exist('numcards','var'), numcards = 1; end
if ~exist('sidelength','var'), sidelength = []; end
if ~exist('delta','var'), delta = []; end
if ~exist('freespace','var'), freespace = []; end
[sidelength,delta,freespace] = ...
bingocarddefaults(sidelength,delta,freespace);
for i = 1:numruns
numturns(i) = playbingo(numcards,sidelength,delta,freespace);
end
avg = mean(numturns);
stddev = std(numturns);