Show / Hide Table of Contents

    Method plot3d

    | Improve this Doc View Source

    plot3d(Double[], Double[], Double[,], Mesh, Boolean)

    plot3d: Plot 3-d surface plot

    Declaration
    public static void plot3d(Double[] x, Double[] y, Double[, ] z, Mesh opt, Boolean side)
    Parameters
    Type Name Description
    Double[] x

    A vector containing the x coordinates at which the function is evaluated.

    Double[] y

    A vector containing the y coordinates at which the function is evaluated.

    Double[,] z

    A matrix containing function values to plot. Should have dimensions of nx by ny.

    Mesh opt

    Determines the way in which the surface is represented: opt=DRAW_LINEX : Lines are drawn showing z as a function of x for each value of y[j] . opt=DRAW_LINEY : Lines are drawn showing z as a function of y for each value of x[i] . opt=DRAW_LINEXY : Network of lines is drawn connecting points at which function is defined.

    Boolean side

    Flag to indicate whether or not ``sides'' should be draw on the figure. If side is true sides are drawn, otherwise no sides are drawn.

    Remarks

    Plots a three-dimensional surface plot within the environment set up by plw3d. The surface is defined by the matrix z[nx][ny] , the point z[i][j] being the value of the function at (x[i],y[j]). Note that the points in vectors x and y do not need to be equally spaced, but must be stored in ascending order. The parameter opt controls the way in which the surface is displayed. For further details see . The only difference between plmesh and plot3d is that plmesh draws the bottom side of the surface, while plot3d only draws the surface as viewed from the top.

    • Improve this Doc
    • View Source
    Back to top Generated by DocFX