% plot sinc function for x [-10,10] and  y [-10,10]

Nx=50;
Ny=50;
xpoints=linspace(-10,10,Nx);
ypoints=linspace(-10,10, Ny);

plot3dForXY(@fsample_sinc,xpoints,ypoints);
set (gcf,'paperposition',[0 0 2,1.5]); % IMPORTANT to shrink eps size
print('-depsc2', 'sinc.eps');


		
