[英]plot a 3d point in MatLab
I'm trying to plot just one point in any coordinate system: Cartesian, cylindrical or spherical. 我试图在任何坐标系中只绘制一个点:笛卡尔,圆柱或球面。
I tried plot3(1,1,1)
with many values but just shows a tiny point in the same location for all values! 我尝试了
plot3(1,1,1)
有很多值,但只是在所有值的同一位置显示一个小点! I tried surf(X,Y,Z)
as well but matlab said: Z must be a matrix, not a scalar or vector. 我也尝试了
surf(X,Y,Z)
,但是matlab说:Z必须是矩阵,而不是标量或矢量。
How about this? 这个怎么样?
plot3(1,1,1,'.');
grid on
You did try it, but then again, that is exactly what it does! 你确实尝试过,但话又说回来,这正是它的作用!
像scatter3(x,y,z1,720,'g','fill')之类的东西将在向量x,y,z1中列出的所有点周围形成720大小的不透明绿色球体。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.