In surface(x,y,z) command what is the value of z that make the white color. I mean is there a color code for surface of surf
1 回表示 (過去 30 日間)
古いコメントを表示
Abdulmajid A Mrebit
2022 年 2 月 7 日
回答済み: Cristian Garcia Milan
2022 年 2 月 7 日
In surface(x,y,z) command what is the value of z that make the white color. I mean is there a color code for surface of surf
採用された回答
Steven Lord
2022 年 2 月 7 日
Many plotting functions interpret NaN in the data as "don't display anything."
[x, y, z] = peaks;
z(abs(z) < 1) = NaN; % Cut out everything between -1 and +1 on the Z axis
surface(x, y, z)
view(3)
0 件のコメント
その他の回答 (1 件)
Cristian Garcia Milan
2022 年 2 月 7 日
Yes, there is. You have to use
surface(X,Y,Z,C)
You have to set the colours as you want, for example:
C(Z==z0,:) = [255,255,255];
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Colormaps についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!