I'm trying to plot a 2 dimensional signal on a specific plane in a 3d model. I have the matrix:
xyzp (nx3)
that contains all the points which are closest to the plane (e.g. when the plane is in the z direction, all the z coordinates are fairly similar). and I have a vector:
signal (nx1)
that contains a value for each point in xyzp. when I use: "surf([xyzp(:,[1,2]),signal)" or "mesh([xyzp(:,[1,2]),signal])" The plot I get doesn't look at all like the intersection of the plane with the model from any angle (I expected "view(2)" to show the signal in the Z direction), so I assume I didn't use the plot function correctly.
Can anyone show me an example? For instance - A circle on an xy plane with some random signal indicated by color
xyzp
just contain a list of x-y-z coordinates that correspond per row to the values in signal? Also do the points form an ordered grid or are they arbitrarily placed? – Danz
data? I think you should look at interpolating your data so that it falls on a regular grid and then you can just use surf. Trygriddata
for the interpolation – Dan