function Varos 
    V=rand(10,2);
    plot(V(:,1),V(:,2),'X');
    waitforbuttonpress

    X=fminunc(@(x)F(x,V),[0 0]);
    plot(V(:,1),V(:,2),'X',X(1),X(2),'+');
    waitforbuttonpress
    
    X=fminsearch(@(x)F(x,V),[0 0]);
    plot(V(:,1),V(:,2),'X',X(1),X(2),'O');
    waitforbuttonpress

function y=F(x,V)
    y=sum((sum((repmat(x,length(V),1)-V).^2')).^0.5);
    