Info

この質問は閉じられています。 編集または回答するには再度開いてください。

what codes are needed to make the surface produced by surf have a unified color?

1 回表示 (過去 30 日間)
Stanley Cheng
Stanley Cheng 2014 年 6 月 25 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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
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!

Translated by