% STEEPPLOTSURF  Plots the surface of the figure
%
%   steepplotsurf(f), plots the surface of the function f, between a
%   fixed a square x=[-10:10] and y=[-10:10] in the xy-plane.
%   Call sequence: steepplotsurf(@f), with f like xyfunc.
%
%   INPUTS
%   f-> function, see xyfunc for an example.
%
%
%
%   Software written by Raf Vandebril
%   Raf.Vandebril-at-cs.kuleuven.be
%   Revision Date: 10/05/2010


function steepplotsurf(f);

  % Defines begin and end of the figure
  endx=10; 
  endy=10;

  % Defines the courseness of the grid
  steplength=2*endx/60; 

  % Creates the mesh on the plane
  [X,Y] = meshgrid(-endx:steplength:endx, -endx:steplength:endx);
  
  % Compute now the function evaluations in the mesh points
  [fxy,grad,Z]=feval(f,0,X,Y);
   

  % Plot the surface on the first figure
  figure(1);
  surf(X,Y,Z)
