Skip to content

breakup_contour_matrix.m

Basic Information

  SYNTAX:  breakup_contour_matrix(ContourMatrix)

  PURPOSE:
    Breakup a ContourMatrix of the type stored as the ".ContourMatrix"
    property in contour graph objects in Matlab, and return the various
    lines that define the contours as a combination of X, Y, and Z
    points.

  INPUTS:
       ContourMatrix:  The ContourMatrix from a Matlab contour chart
                       object from which the X, Y and Z data of the
                       contours is to be extracted.

  OUTPUTS:
       XData:  The X-values of the lines that make up the contours in
               a contour chart object as a row vector. If more than
               one contour line exists on the graph, then each line is
               stored as a separate column in the array. NaN is added
               to fill unused rows.

       YData:  The Y-values of the lines that make up the contours in
               a contour chart object as a row vector. If more than
               one contour line exists on the graph, then each line is
               stored as a separate column in the array. NaN is added
               to fill unused rows.

       ZData:  The Z-values  (levels) of the lines that make up the
               contours in a contour chart object as a row vector. If
               more than one contour line exists on the graph, then
               each line is stored as a separate column in the array.
               NaN is added to fill unused rows.


  RESTRICTIONS:

  WRITTEN BY:  Jayson Barr ON 10/11/18

  MODIFICATION HISTORY:

Dependencies