NCCOOS Trac Projects: Top | Web | Platforms | Processing | Viz | Sprints | Sandbox | (Wind)

root/gliderproc/trunk/MATLAB/opnml/FCAST_1.2/contourtri.m

Revision 495 (checked in by cbc, 12 years ago)

Initial import of Stark code.

Line 
1 function C=contourtri(P,Z,N,V,fill);
2 % CONTOURTRI Contours a triangular mesh
3 %            This is an extension of contourc. CONTOURTRI calculates the
4 %            contour matrix C for use by EXTCONTOUR to draw the actual
5 %            contour plot.
6 %
7 %            C=CONTOURTRI(P,Z,N,V) contours the surface given by
8 %            P=[X Y],Z given the node indices in an 3xn matrix N.
9 %            Contours are drawn at the (optional) V levels.
10 %
11 %            C=CONTOURTRI(...,'fill') returns closed contours by including
12 %            lines along edges.
13
14 % Author: R. Pawlowicz (IOS) rich@ios.bc.ca
15 %         16/Mar/95
16
17 if (nargin==3), V=[]; end;
18 if (nargin==4 & isstr(V) ), fill=1; V=[]; else fill=0; end;
19 if (nargin==5), fill=1; end;
20
21 V=getlevels(Z,V);
22
23 C=contourctri(P,Z,N',V,fill);
24
25  
26  
27  
28  
29  
30  
Note: See TracBrowser for help on using the browser.