%% Plot at Points from Vector
% Evaluate the peaks function over a 2-D grid that is defined by uniformly spaced values in the interval [-1,1].

n = -1:0.25:1;
Z = peaks(n)

% Use the calculated values to create a three-dimensional surface plot.

surf(Z)

% Copyright 2020 The MathWorks, Inc.