mesh display with element values

4 次查看(过去 30 天)
Pinpress
Pinpress 2013-4-8
Hi,
If I use patch to display a mesh, I can color code the mesh surface by specifying the nodal values. However, from finite element methods, frequently I only have element values (i.e., scalar values for each element, but not for each node). In this case, how can I efficiently display the mesh in Matlab and color code the surface then? Can I color code directly each patch instead of the node?
If not, then I could interpolate values on the nodes, and then do display using patch. Then my other question is, when I open the graphics handle, which field corresponds to the scalar values I used for the node then?
thanks.

回答(1 个)

Walter Roberson
Walter Roberson 2013-4-8
surf() might do the interpolation in a way that suits you. The values you provide would become the CData property of the surface.
If you use patch() then you can specify VertexCData or FaceCData properties.

类别

Help CenterFile Exchange 中查找有关 Polygons 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by