绘制在MATLAB 3D点 [英] plot a 3d point in MatLab
本文介绍了绘制在MATLAB 3D点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想绘制只是一个点在任何坐标系:直角,圆柱形或球形
I'm trying to plot just one point in any coordinate system: Cartesian, cylindrical or spherical.
我试过 plot3(1,1,1)
有多个值,但只是显示在同一个位置,所有值一个小点!我试过冲浪(X,Y,Z)
很好,但MATLAB说:ž必须是一个矩阵,而不是一个标量或矢量
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.
感谢大家提前:D
推荐答案
这个怎么样呢?
plot3(1,1,1,'.');
grid on
你没有尝试,但话又说回来,这正是它!
you did try it, but then again, that is exactly what it does!
哦!现在我看到所有的评论......对不起你们,将删除如果需要的话...
oh! I now see all the comments... sorry guys, will delete if needed...
这篇关于绘制在MATLAB 3D点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文