Clear Filters
Clear Filters

How can I plot XYZ-Color surface?

7 views (last 30 days)
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?
  2 Comments
Alexandra Harkai
Alexandra Harkai on 20 Oct 2016
Would you expect the whole 3d domain to be coloured in?
Massimo Zanetti
Massimo Zanetti on 20 Oct 2016
Edited: Massimo Zanetti on 20 Oct 2016
The graph of a scalar function of 3 variables lives in 4D space. One way to visualize it can be using volumetric plots (representing 4th dimension as color intensity)

Sign in to comment.

Accepted Answer

Image Analyst
Image Analyst on 20 Oct 2016
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

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!