mesh - 3D mesh plot
mesh draws a parametric surface using a rectangular grid defined by X and Y coordinates (if {X,Y} are not specified, this grid is determined using the dimensions of the Z matrix) ; at each point of this grid, a Z coordinate is given using the Z matrix. mesh is based on the surf command with default option color_mode = white index (inside the current colormap) and color_flag = 0.
Data entry specification :
In this paragraph and to be more clear, we won't mention GlobalProperty optional arguments as they do not interfer with entry data (except for "Xdata" , "Ydata" and "Zdata" property, see GlobalProperty ). It is assumed that all those optional arguments could be present too.
If Z is the only matrix specified, (Z) plots the matrix Z versus the grid defined by 1:size(Z,2) along the x axis and 1:size(Z,1) along the y axis.
To enable the tranparency mode you should set the color_mode option to 0.
[X,Y]=meshgrid(-1:.1:1,-1:.1:1); Z=X.^2-Y.^2; xtitle('z=x2-y ^2'); mesh(X,Y,Z);
surf , meshgrid , plot2d , LineSpec , GlobalProperty ,
F.Belahcene