how to color a surface?
1 次查看(过去 30 天)
显示 更早的评论
Evrytime i try to color a surface the entire plot comes out to be pitch black in color. i tried these codes..please temme if they r right or wrong.
figure(6)
colormap hsv
surf(ti,X,P_s)
colorbar
ylabel('Distance along pipeline (m)')
xlabel('time (hours)')
zlabel('Pressure (bar)')
grid on
plzz help!
10 个评论
回答(1 个)
Youssef Khmou
2013-8-26
I think your data have many isosamples, that makes the colormap concentrated because of the interpolation,add this command before using colormap :
shading interp
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!