求matlab高手指教,画一个三维的图

2025-01-03 18:52:21
推荐回答(1个)
回答1:

A=0:0.1:5
r=1:1:51;

B=90-A;
u=0.2;
m=70;
g=9.8;
v0=15;
h=2;

k=sqrt(sind(B)/cosd(B)*sind(B)/cosd(B)+1);
b=r*(1-k);
a=r*(sind(B)/cosd(B))/k;
v1=v0*v0+2*g*(h-b)-2*u*g*(sind(B)/cosd(B))*(h-b);
c=(m*v1/r+m*g*sind(A)-3*m*g*(2*m*cosd(A)+sind(A))/(1+4*m*m))/(exp(-2*u*A));
V2=6*g*r*m.*(2*m*sind(A)-cosd(A))/(1+4*m*m)-c*exp(-2*u*A)/(m*u)-6*g*r*m*2*m/(1+4*m*m)+c.*exp(-2*u*pi/2)/(m*u)+2*g.*b+v1;
v2=sqrt(V2);

plot3(A,r,v2)