%softmargindemo.m
RES1=[]; 
for th=0.1:0.1:1 
    RES1=[RES1 svm_softmargin1(th)]; 
end
RES2=[];
for th=0.1:0.1:1 
    RES2=[RES2 svm_softmargin2(th)]
end
figure
subplot(2,1,1)
stem(RES1)
subplot(2,1,2)
stem(RES2)  
