Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
what codes are needed to make the surface produced by surf have a unified color?
조회 수: 5 (최근 30일)
이전 댓글 표시
Hi everyone,
I am using "surf" to produce a 3D surface. However, the color of it is changing with the value of Z in the surface.
How can I make the color of the surface to be unified to only one kind?
THX very much!
Cheers
댓글 수: 1
Geoff Hayes
2014년 6월 26일
Do you mean that you only want the same colour for every point on the 3D surface? If so, after you have called surf3 just change the colormap to a single colour (see http://www.mathworks.com/help/matlab/ref/surf.html for a two colour example):
colormap([1 0 0]);
would change the surface to red.
답변 (0개)
이 질문은 마감되었습니다.
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!