Software Listing of Author : "Jack Kohoutek"
- trisurfc
- License: Freeware
- Price: 0.00


[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...
- Publisher: Jack Kohoutek
- Date Released: 20-06-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- xyzplotter
- License: Freeware
- Price: 0.00


MATLABs most commonly used 3-d plotting tools surf and mesh require rectangular grids to plot in 3-d, not x,y,z triples. This function converts arrays of x,y,z triples into rectangular grids to use with surf, mesh, etc. common usage: [x y z] = xyzplotter(xin,yin,zin) xin,yin,zin are n x 1 arrays that define your surface. So xin(1),yin(1),zin(1) is the first point in your surface, etc. They do not need to be in any particular order. Missing values in the grid will be filled in with NaNs. If you would like to interpolate the NaNs, I suggest inpaint_nans, file exchange number 4551. Here is the link: http://www.mathworks.com/matlabcentral/fileexchange/4551 Andrew Stephens contributed some good ideas to this code, mostly accumarray() and unique() which I didn't know existed before. For now I would like to acknowledge his generous...
- Publisher: Jack Kohoutek
- Date Released: 19-02-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
