Creating Matlab plot with multiple mesh models, only one with CDATA
Ältere Kommentare anzeigen
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 Kommentar
darova
am 9 Apr. 2020
Attach the data
Antworten (1)
Walter Roberson
am 9 Apr. 2020
surf(x1, y1, z1, c1);
hold on
surf(x2, y2, z2, c2);
surf(x3, y3, z3, 'facecolor', 'g')
hold off
4 Kommentare
Katherine Beaulieu
am 9 Apr. 2020
Walter Roberson
am 9 Apr. 2020
trisurf(tr1, x1, y1, z1, c1);
hold on
trisurf(tr2, x2, y2, z2, c2);
trisurf(tr3, x3, y3, z3, 'facecolor', 'g')
hold off
Katherine Beaulieu
am 9 Apr. 2020
Walter Roberson
am 9 Apr. 2020
You need to pass the x, y, z coordinates for the second and third trisurf(). It will not inherit them from the first call.
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!