필터 지우기
필터 지우기

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

조회 수: 2 (최근 30일)
Vishal Srivastava
Vishal Srivastava 2018년 2월 9일
댓글: Vishal Srivastava 2018년 2월 9일
I want to display two different meshes(3d) simultaneously. I tried using pdeplot3D(model) twice with hold on but they had same color.

답변 (1개)

Aletta Wilbrink
Aletta Wilbrink 2018년 2월 9일
You can do it with the code colormap
  댓글 수: 1
Vishal Srivastava
Vishal Srivastava 2018년 2월 9일
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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Colormaps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by