Filter löschen
Filter löschen

Surface with 4th argument for color

3 Ansichten (letzte 30 Tage)
Nikolay Rodionov
Nikolay Rodionov am 18 Mai 2012
Kommentiert: sruthi peesapati am 11 Mär. 2022
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 Kommentar
sruthi peesapati
sruthi peesapati am 11 Mär. 2022
hi nikolay.
i want to do something similar. did you find a way out to plot the surface color based on 4th variable ?

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Sean de Wolski
Sean de Wolski am 18 Mai 2012
Sure, use the fourth argument as an index into your colormap's colors, much like I did here:

Weitere Antworten (0)

Kategorien

Mehr zu Colormaps finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by