matlab 球坐标绘图,在Matlab中绘制球坐标系
我现在生产的东西我很高兴得益于提供给我的有用答案。我确实使用了稍微不同的方法绘制弧线。
hold on
r =1;
phi = pi/4;
theta = pi/4;
%% plot cartesian coordinates:
x0=0;
y0=0;
z0=0;
plot3(x0+[0, .8, nan, 0, 0, nan, 0, 0], y0+[0, 0, nan, 0, .8, nan, 0, 0], z0+[0, 0, nan, 0, 0, nan, 0, .8],k)
text([x0+.85, x0, x0], [y0, y0+.8, y0], [z0, z0, z0+.85], [$x$;$y$;$z$],FontSize,14, Interpreter,latex);
%% plot the ball
line(xdata,sphcart(r,theta,phi,x),ydata,sphcart(r,theta,phi,y),zdata,sphcart(r,theta,phi,z),marker,.,markersize,5);
%% Plot the arm
line(xdata,[0 sphcart(r,theta,phi,x)],ydata,[0 sphcart(r,theta,phi,y)],zdata,[0 sphc
我现在生产的东西我很高兴得益于提供给我的有用答案。我确实使用了稍微不同的方法绘制弧线。 hold on r =1; phi = pi/4; theta = pi/4; %% plot cartesian coordinates: x0=0; y0=0; z0=0; plot3(x0+[0, .8, nan, 0, 0, nan, 0, 0], y0+[0, 0, nan, 0, .8, nan, 0, 0], z0+[0, 0, nan, 0, 0, nan, 0, .8],k) text([x0+.85, x0, x0], [y0, y0+.8, y0], [z0, z0, z0+.85], [$x$;$y$;$z$],FontSize,14, Interpreter,latex); %% plot the ball line(xdata,sphcart(r,theta,phi,x),ydata,sphcart(r,theta,phi,y),zdata,sphcart(r,theta,phi,z),marker,.,markersize,5); %% Plot the arm line(xdata,[0 sphcart(r,theta,phi,x)],ydata,[0 sphcart(r,theta,phi,y)],zdata,[0 sphc下一篇:
k8s离线部署学习-Nvidia插件
