MATLAB: How to plot XYZ-Color surface

4d plotsurface plot

I want to plot a function with 3 variables : f(X,Y,Z) And, the value of function will be represented as color. But, how can I plot this function? What matlab code or function I have to use?

Best Answer

This is ambiguous. Are X, Y, and Z the CIE color space images (see this link, or are they spatial cartesian coordinates? It makes a big difference.
Perhaps you'd like to see this, by Sean de Wolski at the Mathworks: http://www.mathworks.com/matlabcentral/fileexchange/29485-meshcanopy
Related Question