Plotting Edge Data on Mesh Plots

8 次查看(过去 30 天)
Victor
Victor 2011-4-12
I have a vector of complex data that describes information on mesh edges. I am attempting to plot this data using trisurf or trimesh, but these functions can only plot node or face data. Is there any way to plot this data in MATLAB?

回答(2 个)

Matt Fig
Matt Fig 2011-4-12
You could use PATCH to specify the edges.
  1 个评论
Victor
Victor 2011-4-12
If you look at the PATCH documentation there are only 4 options, none of which satisfy my needs. EdgeColor can be {ColorSpec} | none | flat | interp. ColorSpec is a flat color for all edges, and flat and interp are node based. The only way I can see to fix this is to duplicate nodes and then use the flat option as long as each edge has a unique node for determining color. As a point of reference, my test geometry has 10 nodes, 24 edges, and 18 triangles.

请先登录,再进行评论。


Victor
Victor 2011-4-14
So I manually wrote a program using PATCH and will submit it to the File Exchange.

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by