Cannot use 'interp' for 'FaceColor' in patch
Mostrar comentarios más antiguos

I want to have smoother colormap but the program said:
"Warning: Error creating or updating Patch
Error in value of property FaceVertexCData
Number of colors must equal number of vertices ".
The data are given in attached file. Please kindly help me!
s=patch(X,Y,E_t,'FaceColor','interp');
1 comentario
darova
el 21 de Mzo. de 2021
Can you exaplain what your data represents?
s = load('plate.mat');
x = s.X;
y = s.Y;
z = s.E_t;
patch(x,y,z,'facecolor','interp')

Each vertex should have it's own color
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Polygons en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!