function svmplot(X,y)
% SVMPLOT
%  svmplot(X,y) plots two-dimensional points given as row vectors of X.
%  Each point is coloured red or blue depending on the sign of the
%  component of y.

  figure();
  hold on;
  plot(X(y>0,1),X(y>0,2),'.');
  plot(X(y<0,1),X(y<0,2),'.r');
  hold off;
end
