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.1:1];

plot(F1,F2)
figure(2);plot(xo,F1,'bo',xo,F2,'ro'); hold on
plot(xo,gamao)
