MATLAB: SurfC with 4 vectors

surfsurfcvectorvectors

Hello, Quick question : is it possible to make surfc works with vectors ? I have 4 vectors (x,y,z & c for the color) of the same length (1 point per quadruple xyzc ) but I don't understand how to turn them into matrix as surfc asks me. The xyz points are uniformly spaced. Any idea ?

Best Answer

Use reshape function, or interpolate the data:
Related Question