X=linspace(-pi,pi,100);
Y=X;
[x,y]=meshgrid(X,Y);
z=cos(0.1+x.^2/5-x/3-y/5+y.^2/9);
surf(x,y,z);

fmax1=fminsearch('priklad_08_fce',[0 0]);
fmax2=fminsearch('priklad_08_fce',[3 -4]);
fmax3=fminsearch('priklad_08_fce',[-3 -3]);
hold on
plot(fmax1,'x',fmax2,'x',fmax2,'x');
