Color a trisurf with general color?

7 次查看(过去 30 天)
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

采纳的回答

Alex
Alex 2016-7-26
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')

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 3-D Scene Control 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by