Surface with 4th argument for color
2 次查看(过去 30 天)
显示 更早的评论
Hi, I was wondering if someone could tell me if there is a way to add custom coloring to a surface based on a 4th variable. I work in in molecular dynamics and I have modeled a molecular surface based on X, Y, Z coordinates. Now, I'd like to color the surface based on a charge variable.
Can this be done?
1 个评论
sruthi peesapati
2022-3-11
hi nikolay.
i want to do something similar. did you find a way out to plot the surface color based on 4th variable ?
采纳的回答
Sean de Wolski
2012-5-18
Sure, use the fourth argument as an index into your colormap's colors, much like I did here:
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!