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

I want to display two different meshes(3d) simultaneously. I tried using pdeplot3D(model) twice with hold on but they had same color.

Antworten (1)

Aletta Wilbrink
Aletta Wilbrink am 9 Feb. 2018

0 Stimmen

You can do it with the code colormap

1 Kommentar

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.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Color and Styling finden Sie in Hilfe-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