xo=[];
So=[];
F1=[];
F2=[];
gamao=[];
goal = [0; 0];
for w1=0:0.01:1
   w=[w1 1-w1];
   [x,S,gama,ex,out,lambda]=fgoalattain('test26',2,goal,w)
   xo=[xo x];
   So=[So S];
   gamao=[gamao gama];
   F1=[F1 S(1)];
   F2=[F2 S(2)];
end
w=[0:0.01:1];

plot(w,xo,'o'); xlabel('w'); ylabel('x');
figure(2);plot(xo,F1,'bo',xo,F2,'ro'); hold on
plot(xo,gamao); xlabel('x'); legend('F_1','F_2','\gamma')
figure(3);plot(F1,F2); xlabel('F_1'); ylabel('F_2');
