>> Z = peaks; % generate data for plot; peaks returns function values >> surf(Z) % surface plot of Z Try these commands also: >> shading flat >> shadi