cd('~/Current/Courses/Probcourse/SomeData/DataSets/');
% this is where I keep the file, but you may have it somewhere else
[num, txt, raw]=xlsread('normtempdata.xls');
figure(1); hist(num(:, 1), 20); figure(1);
print -depsc2 temphist.eps
% temperature
data1=zeros(size(num, 1), 1);
p1=1;
data2=zeros(size(num, 1), 1);
p2=1;
for i=1:size(num, 1)
    if num(i, 2)==1
        data1(p1)=num(i, 1);
        p1=p1+1;
    elseif num(i, 2)==2
        data2(p2)=num(i, 1);
        p2=p2+1;
    end
end
p1l=p1-1;
p2l=p2-1;
bins=96+0.25*[1:20];
figure(1); hist(data1(1:p1l), bins); figure(1);
axis([96 102 0 14])
title('Gender 1');
print -depsc2 temphistg1.eps
figure(2); hist(data2(1:p2l), bins); figure(2);
axis([96 102 0 14])
title('Gender 2');
print -depsc2 temphistg2.eps