フィルターのクリア

how to color a surface?

1 回表示 (過去 30 日間)
roro6992
roro6992 2013 年 8 月 25 日
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 件のコメント
roro6992
roro6992 2013 年 8 月 25 日
編集済み: roro6992 2013 年 8 月 25 日
When n where to use the opengl software command.?? Anyway thnx for helping man.
Walter Roberson
Walter Roberson 2013 年 8 月 25 日
The "opengl" command could be used at any point.

サインインしてコメントする。

回答 (1 件)

Youssef  Khmou
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

カテゴリ

Help Center および File ExchangeColormaps についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by