I have a problem in customizing colors of a surface plot (trisurf or trimesh).
I would like every face to have a color depending on the relative strain value (calculated for every triangle of the mesh). I was thinking about something like:
p = patch('Faces',faces,'Vertices',verts,'FaceColor',strain);
But FaceColor
seems not to work with arrays.
strain is an array of Nx1
where N
is the number of faces.