%% Contours of Sphere
% Define Z as a function of X and Y. In this case, call the sphere function to create X, Y, and Z. Then plot the contours of Z.

[X,Y,Z] = sphere(50);
contour3(X,Y,Z);

% Copyright 2018 The MathWorks, Inc.