How to edit surf graph in MATLAB?

조회 수: 3 (최근 30일)
Wittaya Sata
Wittaya Sata 2017년 7월 20일
댓글: Wittaya Sata 2017년 7월 30일
Hi. I want plot Matrix to surf 3d graph on left picture, but I plot show on right picture. How to fix or code me for plot graph on left picture?
#Thank you.
My code : code
  댓글 수: 6
dbmn
dbmn 2017년 7월 26일
If you want to get rid of the minus do:
zlim([-40 0]) % change limits, following walters remark
% now we take care about the minus
zticklabels(num2cell(-zticks)); % This creates new z-labels
Note if you update the zlims, you need to update the labels as well, because labels are just stickers that we put onto the z axis and they do not change when the axis changes.
Wittaya Sata
Wittaya Sata 2017년 7월 30일
U___U

댓글을 달려면 로그인하십시오.

채택된 답변

dbmn
dbmn 2017년 7월 21일
This should help you get started. I just added some lines to your code to make it look more like the old one
hdl = surf(B);
shading interp
xlabel('row')
ylabel('column')
% added stuff
colormap(jet) % old colormap
colormap(flipud(colormap)) % invert colormap (following Walters Remark)
hdl.EdgeColor = 'k' % black lines
  댓글 수: 3
Walter Roberson
Walter Roberson 2017년 7월 23일
zlim([0 40]) or possibly zlim([-40 0])
Wittaya Sata
Wittaya Sata 2017년 7월 24일
thank you for x y z lim

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Discrete Data Plots에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by