Documentation Center

  • Trial Software
  • Product Updates

surfht

Interactive contour plot

Syntax

surfht(Z)
surfht(x,y,Z)

Description

surfht(Z) is an interactive contour plot of the matrix Z treating the values in Z as height above the plane. The x-values are the column indices of Z while the y-values are the row indices of Z.

surfht(x,y,Z) where x and y are vectors specify the x and y-axes on the contour plot. The length of x must match the number of columns in Z, and the length of y must match the number of rows in Z.

There are vertical and horizontal reference lines on the plot whose intersection defines the current x value and y value. You can drag these dotted white reference lines and watch the interpolated z value (at the top of the plot) update simultaneously. Alternatively, you can get a specific interpolated z value by typing the x value and y value into editable text fields on the x-axis and y-axis respectively.

Was this topic helpful?