Possible values are flat, interp, RGB triplets, texture map, hexadecimal color code etc. This attribute customize the face of the color in the plot. Possible values are‘-‘ (solid line), ‘-‘ (dashed line), ‘:’ (dotted line) etc. It is used to set the line style for the representation of the 3D surface plot. Possible values are none, flat, interp, RGB triplets, color name etc. The attribute is used to decide the color for the edge lines of the plot. Some of the attributes which can be altered to customize the plot, are given in the table below: Attribute The attribute given as name in the pair gets set with the data given as value in the function call. Matlab supports the feature to alter the display of the generated plot using name-value pairing format in mesh() function. input matrix ‘Z’, x,y coordinate inputs ‘P’ and ‘Q’. The code written below generates 3D surface plot from mesh() function which accepts 3 input arguments i.e. The color value is set by the input argument ‘C’ which is being designed as function of the x,y coordinates ‘P’ and ‘Q’. The below set of command is defined to change the color of the same plot generated in the previous function defining the input argument ‘C’. The plot is generated with the default color value depending on the data values in the input matrix. The below code snippet is used to generate 3D plot for the input matrix ‘I’ which is function of x-coordinate ‘P’ and y-co-ordinates ‘R’ providing ‘I’ as single input argument to the mesh() function call. Given below are the examples mentioned: Example #1 – Using mesh(Z) The object can be used to modify the surface object properties after the plot is generated. It is used to store the 3D plot generated from the function mesh() in chart surface object. It is used to set surface properties for the plot using name-value pair argument format. It is used to generate the 3D surface plot with the new axis ‘ax’. It is used to generate 3D surface plot of which on the x-y plane, set by X and Y, with edge color ‘C’. It is used to generate 3D surface plot of which height is determined by the values in the input matrix ‘Z’ and the x-y plane is set by X and Y. It is used to generate 3D surface plot for input matrix ‘Z’ with the color for the edges set to ‘C’. It is used to generate 3D surface plot of which x, y co-ordinates are decided by column and row indices of the input matrix ‘Z’. This 3D surface plotting function can be implement with different syntaxes depending on input arguments, provided to the function call.ĭifferent syntax and their respective input arguments are described in the below table: Syntax Hadoop, Data Science, Statistics & others