Copyright Tristan Aubrey-Jones April 2007.
function y = plotQuestion3A(sample, conds, given, x);
% calculates the probabilty for increasing sample
% size in x, and plots a graph of the results.
y = [];
% repeat for all x
for i = x
ysz = size(y);
row = calculateProbs(sample(1:i, 1:5), conds, given, [], [], 0)';
rsz = size(row);
y(ysz(1)+1, 1:rsz(2)) = row;
end
% plot graph
plot(x,y);