Surface with 4th argument for color
1 回表示 (過去 30 日間)
古いコメントを表示
Nikolay Rodionov
2012 年 5 月 18 日
コメント済み: sruthi peesapati
2022 年 3 月 11 日
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!