Regarding 3d plot color
2 ビュー (過去 30 日間)
古いコメントを表示
I am trying to plot a 3d plot using surface function.
How can I change the color of the plot?
0 件のコメント
採用された回答
その他の回答 (1 件)
Cris LaPierre
2022 年 3 月 11 日
The spacing between your values is so small that all you are seeing here is the EdgeColor. Try setting the color to 'none' and see if what you get is more like what you expected.
[X,Y] = meshgrid(-5:.5:5);
Z = Y.*sin(X) - X.*cos(Y);
surface(X,Y,Z);
view(3)
% with no EdgeColor
figure
surface(X,Y,Z,'EdgeColor','none');
view(3)
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!