Creating Matlab plot with multiple mesh models, only one with CDATA
조회 수: 7 (최근 30일)
이전 댓글 표시
Hi Everyone,
I am looking for a way to plot three mesh models using trisurf but I want one of the mesh models to be colored using CData, but the other two to be a single color using FaceColor. Is there a simple way to do this?
-Katherine
EDIT:
My data is in face vertex format and plotting is done using trisurf.
답변 (1개)
Walter Roberson
2020년 4월 9일
surf(x1, y1, z1, c1);
hold on
surf(x2, y2, z2, c2);
surf(x3, y3, z3, 'facecolor', 'g')
hold off
댓글 수: 4
Walter Roberson
2020년 4월 9일
You need to pass the x, y, z coordinates for the second and third trisurf(). It will not inherit them from the first call.
참고 항목
카테고리
Help Center 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!