% Grade plots
% Updated Dec 11, 2010
clf

figure(1)
subplot(3,2,1)
hist(examtot,30);title('Dist of total exam grades')

subplot(3,2,3)
plot(sort(examtot),100*(1:nstud)/nstud); title('Cumulative distribution')
xlabel('examtotal, out of 100');
ylabel('percent of students with less than that score')
grid on

subplot(3,2,2)
hist(homeworktot,30);title('Dist of total homork grades')

subplot(3,2,4)
plot(sort(homeworktot),100*(1:nstud)/nstud); title('Cumulative distribution')
xlabel('examtotal, out of 100');
ylabel('percent of students with less than that score')
grid on

subplot(3,2,5)
plot(clickerdrop,total_grade,'.')
 xlabel('iclicker score'),ylabel('total grade'),

subplot(3,2,6)
plot(homeworktot,total_grade,'.')
 xlabel('homework score'), ylabel('total grade'),
 
 figure(2)
 
 subplot(2,1,1)
hist(total_grade,30);title('Dist of total exam grades')

subplot(2,1,2)
plot(sort(total_grade),100*(1:nstud)/nstud); title('Cumulative distribution')
xlabel('totalgrade, out of 100');
ylabel('percent of students with less than that score')
grid on
 
 %figure(3)
 %plot(max(homeworktot*3,clickerdrop),examtot,'.')
 

%plot(min(homeworktot,clickerdrop/3), examtot,'.')
%plot(labtot,examtot,'.')
%plot(homeworktot,labtot,'.')
