How to tilt the plot on the right to make it like the one on the left?

조회 수: 3 (최근 30일)

채택된 답변

Star Strider
Star Strider 2023년 3월 13일
Tilting it is relatively straightforward with the rotate function —
[X,Y,Z] = peaks(50);
figure
surf(X,Y,Z)
xlabel('X')
ylabel('Y')
zlabel('Z')
shading('interp')
figure
h = surf(X,Y,Z);
xlabel('X')
ylabel('Y')
zlabel('Z')
rotate(h,[-1 0 0], 20)
view(85,10)
shading('interp')
For some reason, rotate is distorting the surface and it shouldn’t. It’s never done that before when I’ve used it. I’m going to submit a Bug Report about it
.
  댓글 수: 4
Khalil Sabour
Khalil Sabour 2023년 3월 15일
Thank you, and I have another question, after tilting, how to measure the profile parameters such as Ra, Rz, Rt, etc.?
Star Strider
Star Strider 2023년 3월 15일
I have no idea what those are.
You need to define them and how to calculate them.

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

추가 답변 (1개)

Cameron
Cameron 2023년 3월 13일
Use the "View" under the plot handle to update this.
[X,Y,Z] = peaks(250);
p = surf(X,Y,Z,'EdgeColor','none');
p.Parent.View = [10 35];

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

태그

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by