Plotting Edge Data on Mesh Plots

8 Ansichten (letzte 30 Tage)
Victor
Victor am 12 Apr. 2011
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?

Antworten (2)

Matt Fig
Matt Fig am 12 Apr. 2011
You could use PATCH to specify the edges.
  1 Kommentar
Victor
Victor am 12 Apr. 2011
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.

Melden Sie sich an, um zu kommentieren.


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

Community Treasure Hunt

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

Start Hunting!

Translated by