mesh display with element values
Mostrar comentarios más antiguos
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.
Respuestas (1)
Walter Roberson
el 8 de Abr. de 2013
0 votos
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.
Categorías
Más información sobre Polygons en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!