Code covered by the BSD License  

Highlights from
trisurfc

Be the first to rate this file! 9 Downloads (last 30 days) File Size: 5.2 KB File ID: #25262
image thumbnail

trisurfc

by Jack Kohoutek

 

08 Sep 2009 (Updated 10 Sep 2009)

Extends the MATLAB command trisurf() to put a contour plot below the mesh.

Editor's Notes:

Darren Engwirda is a co-author

| Watch this File

File Information
Description

[cout,hout] = trisurfc(xin,yin,zin,N)

Regularly just called by with the following syntax to produce a plot:
trisurfc(xin,yin,zin,N)
Where xin,yin,zin are 1-D arrays of the x,y,z triples of the points in your mesh.

Contouring and surface function for functions defined on triangular meshes
xin, yin, zin, are arrays of x,y,z values of the points for your surface.
So [x(1) y(1) z(1)] defines the first point, etc.
The last input N defines the contouring levels. There are several options:
   N scalar - N number of equally spaced contours will be drawn
   N vector - Draws contours at the levels specified in N

 A special call with a two element N where both elements are equal draws a single contour at that level.

   [C,H] = TRISURFC(...)
 This syntax can be used to pass the contour matrix C and the contour handels H to clabel by adding clabel(c,h) or clabel(c) after the call to TRICSURFC.

Contour line code by Darren Engwirda - 2005
 Updated 15/05/2006
 Surface code added by Jack Kohoutek - 2009

MATLAB release MATLAB 7.6 (R2008a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
09 Sep 2009

Just updated the desc.

10 Sep 2009

Adding Darren Engwirda as a second author. Thanks.

Tag Activity for this File
Tag Applied By Date/Time
mathematics Jack Kohoutek 09 Sep 2009 10:57:39
image processing Jack Kohoutek 09 Sep 2009 10:57:39
data exploration Jack Kohoutek 09 Sep 2009 10:57:39
interpolation Jack Kohoutek 09 Sep 2009 10:57:39
physics Jack Kohoutek 09 Sep 2009 10:57:39
3d plotting Jack Kohoutek 09 Sep 2009 16:54:04

Contact us at files@mathworks.com