From: Zeph Davies on
Hi,

I have a mesh, and i want to highlight certain triangles.
For example I want most of them to be blue, but specific ones to be red.

Using the input:
trisurf(Tri,X,Y,Z,C)

'Tri' is a m-by-3 matrix. Lets say I made it a m-by-4 matrix, and used the 4th column to be a 0 or 1 to represent the colour i want to give to that triangle. 0 = blue, 1 = red.

I can then use:
trisurf( Tri(:,1:3), X, Y, Z, C)
to ignore this 4th column.

However, I do not know what the "Vector C" is or should look like.
I need to extract the 4th column from Tri, and create from is C so that the triangles get correctly coloured.

Any ideas?

Zeph