3d plot change view / reverse axis

9 次查看(过去 30 天)
I have a 3d plot generated by the following code
d = 30:2:70;
g = 30:2:70;
C = 0.02;
k=0.7;
[D,G] = meshgrid(d,g);
Z = (2^(-k-(3/2)).*12*((pi)^(0.5))*C.*(gamma(2-k).*(D.^(2*k-4)+G.^(2*k-4))))./((2^(-k-0.5).*((pi)^0.5)*C.*gamma(1-k).*(D.^(2*k-2)+G.^(2*k-2))).^2);
surf(D,G,Z)
The problem is that its not very easy to look at the 3d plot produced. If I could somehow look at it from the opposite side or reverse the bottom axis so they went from 70 to 30 (instead of 30 to 70), I could then get a plot that would view better.
Any thoughts on how to do this?

采纳的回答

Matt Fig
Matt Fig 2011-5-3
Have you tried the command:
rotate3d
Put this command after your call to SURF, then click on the plot and spin it around to wherever you want. Also, it would help you keep track of where you are if you put labels in the plot. For example, put this after your call to SURF:
xlabel('D')
ylabel('G')
zlabel('Z')

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by