绘制随时间变化的 3D 位置数据
我正在尝试绘制对象在 3D 空间(x、y 和 z 坐标)中随时间的位置,以便我可以预测对象可能采取的路径。
我试图在 Matlab 中做到这一点,但问题比这更普遍。我发现很难想象这是如何运作的。我了解如何随着时间的推移绘制 x 和 y 位置(这将生成 3d 图形),但是我将如何添加第三个维度?
我知道 Matlab 中的 scatter3,但我需要运动是一条连续的线。这可能吗?
谢谢!
I'm trying to plot the position of an object in 3D space (x, y and z co-ordinates) over time so that I can make predictions of the path the object might take.
I'm attempting to do this in Matlab, but the question is more general than that. I'm finding it hard to visualise how this would work. I understand how one would plot x and y positions over time (and that would make a 3d graph), but how would I add a third dimension?
I know about scatter3 in Matlab, but I need the motion to be a continuous line. Is this possible?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我会将 4-D 轨迹绘制为 3D 线,并定期添加注释。
I would plot the 4-D trajectory as a line in 3D with annotations at regular time intervals.
Nzbuu的回答很好。您还可以使用颜色/渐变作为信息的额外维度来传达时间。或者您可以创建一个动画(或几个连续的时间快照)。
Nzbuu's answer is good. You can also use color/gradient as an extra dimension of information to communicate time. Or you can create an animation (or several serial snapshots of time).