%% Modify Mesh Plot Appearance
% Create a semitransparent mesh surface by specifying the FaceAlpha name-value pair with 0.5 as the value. To allow further modifications, assign the surface object to the variable s.

[X,Y] = meshgrid(-5:.5:5);
Z = Y.*sin(X) - X.*cos(Y);
s = mesh(X,Y,Z,'FaceAlpha','0.5')

%
% Use s to access and modify properties of the mesh plot after it is created. For example, add color to the face of the mesh plot by setting the FaceColor property.

s.FaceColor = 'flat';

% Copyright 2015 The MathWorks, Inc.