function z=myfun(x,y)
%MYFUN(X,Y) an example function of two variables
z = sin(x).*cos(y) + 1;