ntrials = 1000;
npacks = 50;
trimult = 1; %how often tri-class cards appear
dust = [];
for i = 1:ntrials
cards = [];
golden = [];
for i = 1:npacks
[a,b] = createpack(trimult);
cards = [cards, a];
golden = [golden, b];
end
dust = [dust , calcdust(cards, golden, true, false)];
end
dust = dust / npacks;
avgdust = mean(dust);
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.