% LMex020213_4th.m
% Example 2.2.12 p 33-34 in
% Larsen & Marx (2006) Introduction to Mathematical Statistics, 4th edition
% Written by Eugene.Gallagher@umb.edu 1/14/11 37
% http://alpha.es.umb.edu/faculty/edg/files/edgwebp.html
% Plot a simple 3-circle venn diagram with custom patch properties
  figure, axis equal, axis off
  A = [100 15 30]; I = [15 30 10 10];
  venn(A,I,'FaceColor',{'y','r','g'},'FaceAlpha',...
      {0.4,0.6,0.6},'EdgeColor','black')
  % These diagrams can't be edited properly within Matlab, but they do
  % provide the basis for editing outside of Matlab.
 % gtext will place the labels A and B
  gtext('S','FontSize' ,20);gtext('L','FontSize',20),
  gtext('H','FontSize',20)
  % Note that the eps files produced from this program are massive: 3mb but
  % the bitmapped graphics after transfer to Corel are small.