How to tilt the plot on the right to make it like the one on the left?
7 次查看(过去 30 天)
显示 更早的评论
采纳的回答
Star Strider
2023-3-13
[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 个评论
Star Strider
2023-3-15
I have no idea what those are.
You need to define them and how to calculate them.
更多回答(1 个)
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];
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!