problem with facevertexcdata and patch

3 views (last 30 days)
Paul Fischer
Paul Fischer on 23 Feb 2015
Edited: Stephen23 on 24 Feb 2015
Hi,
I'm trying the following command:
clf,patch('faces',t,'vertices',p,'FaceVertexCData',qm,'edgecol','y')
which I expect would color my vertices by the array "qm" which is as long as the vertex list, p.
Instead, I get a black object (a 2D manifold in R3), with yellow lines properly delineating the edges of the triangles.
I've tried many permutations of the above line and could successfully executed the examples for the cube, which uses hsv(6) instead of the array qm. But somehow the above refuses to color the triangles.
Any suggestions?
Thanks!
Paul Fischer
  1 Comment
Stephen23
Stephen23 on 24 Feb 2015
Edited: Stephen23 on 24 Feb 2015
Can you please upload a .MAT file of your exact data.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!