MATLAB: Color a trisurf with general color

colorsurafce color

Hello,
I am using Facecolor:
trisurf(ksurf,x,y,z,'Facecolor','red','FaceAlpha',.1,'EdgeColor','none')
to color a surface. I'd like to be able to specify more general colors, from the 0-255 RGB style. Is that possible?
Thanks a lot, Dave

Best Answer

Set your color doing something like this: gold = [218/255 168/255 32/255]; Look up the specific RGB values for the color you want, put them in the array ordered RGB, dividing the color values by 255, then you should be set to use that color. Then make the same call you used before replacing the color: trisurf(ksurf,x,y,z,'Facecolor',gold,'FaceAlpha',.1,'EdgeColor','none')
Related Question