%% Modify Appearance of Mesh and Contour Plots
% Create a mesh plot with a contour plot underneath it. To allow further modifications, assign the graphics array containing the surface and contour objects to the variable sc.

[X,Y] = meshgrid(-5:.5:5);
Z = Y.*sin(X) - X.*cos(Y);
sc = meshc(X,Y,Z);

%
% Index into sc to access and modify properties of the mesh and contour plots after they are created. The mesh plot is accessible as sc(1) and the contour plot as sc(2).  For example, change the edge colors of the two plots by setting the EdgeColor properties.

sc(1).EdgeColor = 'r';
sc(2).EdgeColor = 'b';

% Copyright 2019 The MathWorks, Inc.