简体   繁体   中英

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! I tried surf(X,Y,Z) as well but matlab said: Z must be a matrix, not a scalar or vector.

How about this?

plot3(1,1,1,'.');
grid on

3d空间中的单点

You did try it, but then again, that is exactly what it does!

像scatter3(x,y,z1,720,'g','fill')之类的东西将在向量x,y,z1中列出的所有点周围形成720大小的不透明绿色球体。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM