From: Zeph Davies on 29 Jan 2010 11:15 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
|
Pages: 1 Prev: parameter estimation and ode45 Next: how to add coding into my block model? |