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