[x,y]=meshgrid([-3:0.1:3],[-3:0.1:3]);

[m,n]=size(x);

for i=1:m
    for j=1:n
        S(i,j)=fun_obj([x(i,j) y(i,j)]);
    end
end

mesh(x,y,S);
