No BSD License  

Highlights from
Neuro-Fuzzy and Soft Computing

image thumbnail
peaksfcn(input)
function z = peaksfcn(input)

x = input(1); y = input(2);
z =  3*(1-x).^2.*exp(-(x.^2) - (y+1).^2) ...
   - 10*(x/5 - x.^3 - y.^5).*exp(-x.^2-y.^2) ...
      - 1/3*exp(-(x+1).^2 - y.^2);

Contact us at files@mathworks.com