How to insert a create a colormap like this for fill3 plots?

4 views (last 30 days)
I'm plotting a bunch of triangles using a for loop and the fill3 command as shown below. I want to do something like this example where a Z-range corresponds to a particular color.
Right now, I'm using fill3(x,y,z,'r') since I'm not really sure what else to do.

Answers (0)

Categories

Find more on Colormaps in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!