Effacer les filtres
Effacer les filtres

How can I get different colors for two meshes(3D) in same plot?

2 vues (au cours des 30 derniers jours)
Vishal Srivastava
Vishal Srivastava le 9 Fév 2018
I want to display two different meshes(3d) simultaneously. I tried using pdeplot3D(model) twice with hold on but they had same color.

Réponses (1)

Aletta Wilbrink
Aletta Wilbrink le 9 Fév 2018
You can do it with the code colormap
  1 commentaire
Vishal Srivastava
Vishal Srivastava le 9 Fév 2018
Thank you for this. But it didn't worked. I am displaying only the 3D mesh, not PDEsolution. I think colormap perhaps changes the color scheme of solutions, not the mesh. I am still getting the same 'Cyan' color.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Colormaps dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by