clear all; close all;

% Format: [trainingSize errorRate]
results = [50   3.88e-2;
           100  2.62e-2;
           200  2.62e-2;
           400  1.88e-2;
           800  1.75e-2;
           1400 1.62e-2];
plot(results(:,1),results(:,2)*100,'.-');
xlim([0 1500]);
ylim([0 5]);
grid on;
xlabel('Training size');
ylabel('Classification error rate (%)');
title('CS 229, PS#2, Problem 3(c)');