| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → MATLAB |
| Contents | Index |
| Learn more about MATLAB |
MATLAB provides standalone functions to plot triangulation representations. These functions can take 2- and 3-D TriRep and DelaunayTri objects as input.
Create a 2-D Delaunay triangulation and plot it with triplot:
x=rand(10,1); y=rand(10,1); dt = DelaunayTri(x,y); triplot(dt) hold on;

Plot the Voronoi diagram with voronoi:
voronoi(dt) hold off;

You can also plot 3-D triangulation representations.
load tetmesh TR = TriRep(tet, X); tetramesh(tet,X,'FaceColor','cyan')

You can plot a surface mesh with trisurf.
load trimesh3d TR = TriRep(tri,x,y,z); trisurf(TR)

![]() | Delaunay Triangulation and Related Constructs | Interpolation | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |