function [] = svm_plot(Samples, Labels, AlphaY, SVs, Bias,Parameters, nSV, nLabel)

figure;svm_plot_data(Samples, Labels); hold on;

% plot support vectors
plot(SVs(1,:),SVs(2,:),'ko');
 
myax = axis;
m = 100; % grid points for contour
tx = myax(1) + (myax(2)-myax(1))*(0:m)'/m;
ty = myax(3) + (myax(4)-myax(3))*(0:m)'/m;
 
Z = zeros(m+1,m+1);
for i=1:m+1
    X = [tx,repmat(ty(i),m+1,1)]';
    Z(i,:) = svm_discrim_func(X,AlphaY, SVs, Bias,Parameters, nSV, nLabel);
end
h=contour(tx,ty,Z,[0 0],'k-'); hold off;
