Code covered by the BSD License  

Highlights from
Contour Plot for Scattered Data

5.0 | 4 ratings Rate this file 66 Downloads (last 30 days) File Size: 3.78 KB File ID: #38858 Version: 1.0
image thumbnail

Contour Plot for Scattered Data



Triangular Contour Plot

| Watch this File

File Information

TRICONTOUR(TRI,X,Y,Z,N) draws scalar N contour lines treating the values in Z as heights above a plane. TRI,X,Y,and Z define a triangulation where the triangles are defined by the M-by-3 face matrix TRI, such as that returned by DELAUNAY. Each row of TRI contains indices into the X,Y, and Z vertex vectors to define a single triangular face. Contours are computed directly from the triangulation rather than interpolating back to a cartesian grid using GRIDDATA.
TRICONTOUR(TRI,X,Y,Z,V) draws length(V) contour lines at the values specified in vector V.
TRICONTOUR(TRI,X,Y,Z,[v v]) draws a single contour line at the level v.
[C,H] = TRICONTOUR(...) returns contour matrix C as described in CONTOURC and a vector of handles H to the created patch objects.
H can be used to set patch properties.
CLABEL(C) or CLABEL(C,H) labels the contour levels.

Required Products MATLAB
MATLAB release MATLAB 7 (R14)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (4)
10 Feb 2016 gioxi84  
29 Apr 2015 Ludger Suarez-Burgoa

Useful function in order to display contour lines from a TIN (equivalent to a Delaunay triangulation) without converting the TIN into a regular mesh.

19 Nov 2014 Rick van Rijn  
21 Aug 2013 Jon

Jon (view profile)

Exactly what I was looking for.

Contact us