%Create fancy plot n=10; x=linspace(0,4,n); y=linspace(1,5,n); for i=1:n for j=1:n z(i,j)=x(i)^2+y(j)^2+4*x(i)-6*y(j); end end mesh(x,y,z)