필터 지우기
필터 지우기

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 CenterFile Exchange에서 Colormaps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by